summaryrefslogtreecommitdiff
path: root/read.php
diff options
context:
space:
mode:
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' ));
}