diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-04-11 13:03:25 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-04-11 13:03:25 +0000 |
| commit | 5ba45d8c3567b87fd738f4208c1133d11be57c03 (patch) | |
| tree | 996d1f3ba1b0410275a8074f5af351aa6c022a11 /read.php | |
| parent | 9090a1dfd56f072cffec76f040a5a6cf0b1c003c (diff) | |
| download | articles-5ba45d8c3567b87fd738f4208c1133d11be57c03.tar.gz articles-5ba45d8c3567b87fd738f4208c1133d11be57c03.tar.bz2 articles-5ba45d8c3567b87fd738f4208c1133d11be57c03.zip | |
rename permissions to new standard using: p_<package>_<verb>_[<noun>]
Diffstat (limited to 'read.php')
| -rw-r--r-- | read.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_articles/read.php,v 1.14 2006/02/18 19:16:04 bitweaver Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_articles/read.php,v 1.15 2006/04/11 13:03:24 squareing Exp $ * @package article * @subpackage functions */ @@ -14,7 +14,7 @@ require_once( ARTICLES_PKG_PATH.'BitArticle.php' ); $gBitSystem->verifyPackage( 'articles' ); -if( !$gBitUser->hasPermission( 'bit_p_read_article' ) ) { +if( !$gBitUser->hasPermission( 'p_articles_read' ) ) { $gBitSmarty->assign( 'msg', tra( "Permission denied you cannot view this section" ) ); $gBitSystem->display( "error.tpl" ); die; @@ -27,7 +27,7 @@ if( !$gBitUser->hasPermission( 'bit_p_read_article' ) ) { include_once( ARTICLES_PKG_PATH.'lookup_article_inc.php' ); // 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 && !( $gBitUser->hasPermission( 'bit_p_edit_submission' ) || $gBitUser->hasPermission( 'bit_p_edit_submission' ) || $gBitUser->hasPermission( 'bit_p_edit_submission' ) || $gBitUser->isAdmin() ) ) { +if( $gContent->getField( 'status_id' ) != ARTICLE_STATUS_APPROVED && !( $gBitUser->hasPermission( 'p_articles_edit_submission' ) || $gBitUser->hasPermission( 'p_articles_edit_submission' ) || $gBitUser->hasPermission( 'p_articles_edit_submission' ) || $gBitUser->isAdmin() ) ) { $gBitSmarty->assign( 'msg', tra( "Permission denied you cannot view this article" ) ); $gBitSystem->display( "error.tpl" ); die; @@ -37,7 +37,7 @@ $gContent->addHit(); $gBitSmarty->assign_by_ref( 'article', $gContent->mInfo ); // get all the services that want to display something on this page -$displayHash = array( 'perm_name' => 'bit_p_view' ); +$displayHash = array( 'perm_name' => 'p_wiki_view_page' ); $gContent->invokeServices( 'content_display_function', $displayHash ); $topics = BitArticleTopic::getTopicList(); |
