summaryrefslogtreecommitdiff
path: root/read.php
diff options
context:
space:
mode:
authorbitweaver.org <bitweaver@users.sourceforge.net>2007-10-04 16:29:22 +0000
committerbitweaver.org <bitweaver@users.sourceforge.net>2007-10-04 16:29:22 +0000
commit0b645645039766b7233887c7f47b250c58c8ee4f (patch)
tree7f397b09c224fa43cbfe5e69440ad66ed2b1864f /read.php
parent8e16c6083fc16da04b5404bc4777ad899d603799 (diff)
downloadarticles-0b645645039766b7233887c7f47b250c58c8ee4f.tar.gz
articles-0b645645039766b7233887c7f47b250c58c8ee4f.tar.bz2
articles-0b645645039766b7233887c7f47b250c58c8ee4f.zip
change to verifyViewPermission so global is checked
Diffstat (limited to 'read.php')
-rw-r--r--read.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/read.php b/read.php
index 9535749..fab9bb6 100644
--- a/read.php
+++ b/read.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_articles/read.php,v 1.22 2007/09/11 19:45:43 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_articles/read.php,v 1.23 2007/10/04 16:29:22 bitweaver Exp $
* @package article
* @subpackage functions
*/
@@ -25,7 +25,7 @@ if( !$gContent->isValid() ) {
$gBitSystem->fatalError( tra( 'Article cannot be found' ));
}
-$gContent->verifyPermission( 'p_articles_read' );
+$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 ) {