summaryrefslogtreecommitdiff
path: root/read.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2008-10-20 21:40:08 +0000
committerChristian Fowler <spider@viovio.com>2008-10-20 21:40:08 +0000
commit9de6d0ae14e9104fe0616de84a5810d251911bae (patch)
tree1b97e730304cc567274573ea1d52038c348eaf5c /read.php
parentc0f6195ecc9afe97048757cf681a8e091a795052 (diff)
downloadarticles-9de6d0ae14e9104fe0616de84a5810d251911bae.tar.gz
articles-9de6d0ae14e9104fe0616de84a5810d251911bae.tar.bz2
articles-9de6d0ae14e9104fe0616de84a5810d251911bae.zip
BIG CHANGE: migrate p_*_edit permissions to p_*_update permission naming convention, hasEditPermission is now hasUpdatePermission, many explicit perm checks have been cleaned up to hasUpdatePermission
Diffstat (limited to 'read.php')
-rw-r--r--read.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/read.php b/read.php
index d328faf..225fc84 100644
--- a/read.php
+++ b/read.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_articles/read.php,v 1.26 2008/10/03 17:20:15 wjames5 Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_articles/read.php,v 1.27 2008/10/20 21:40:08 spiderr Exp $
* @package articles
* @subpackage functions
*/
@@ -29,14 +29,14 @@ $gContent->verifyViewPermission();
// additionally we need to check if this article is a submission and see if user has perms to view it.
if( $gContent->getField( 'status_id' ) != ARTICLE_STATUS_APPROVED ) {
- if( !( $gContent->hasUserPermission( 'p_articles_edit_submission' ) || $gContent->hasUserPermission( 'p_articles_approve_submission' ))) {
+ if( !( $gContent->hasUserPermission( 'p_articles_update_submission' ) || $gContent->hasUserPermission( 'p_articles_approve_submission' ))) {
$gBitSystem->fatalError( tra( "Permission denied you cannot view this article" ));
}
}
// we also need to check and see if the article is future dated - we will display it if the user can edit it otherwise we pretend it does not exist.
$timestamp = $gBitSystem->getUTCTime();
-if ( ($gContent->mInfo['publish_date'] > $timestamp) && !$gContent->hasEditPermission() ){
+if ( ($gContent->mInfo['publish_date'] > $timestamp) && !$gContent->hasUpdatePermission() ){
$gBitSystem->fatalError( tra( 'Article cannot be found' ));
}