diff options
| author | bitweaver.org <bitweaver@users.sourceforge.net> | 2007-10-04 16:29:22 +0000 |
|---|---|---|
| committer | bitweaver.org <bitweaver@users.sourceforge.net> | 2007-10-04 16:29:22 +0000 |
| commit | 0b645645039766b7233887c7f47b250c58c8ee4f (patch) | |
| tree | 7f397b09c224fa43cbfe5e69440ad66ed2b1864f /read.php | |
| parent | 8e16c6083fc16da04b5404bc4777ad899d603799 (diff) | |
| download | articles-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.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 ) { |
