diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-07-06 16:37:22 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-07-06 16:37:22 +0000 |
| commit | e89540d4bfe24cf650511e138b7e16e46d1bc3c8 (patch) | |
| tree | 49bd4e19aa711708862f258170872eca6ff95655 /article_history.php | |
| parent | 61d47f9b1c26deb96a0c835046bb2a477f67c1df (diff) | |
| download | articles-e89540d4bfe24cf650511e138b7e16e46d1bc3c8.tar.gz articles-e89540d4bfe24cf650511e138b7e16e46d1bc3c8.tar.bz2 articles-e89540d4bfe24cf650511e138b7e16e46d1bc3c8.zip | |
move to gContent perm functions to fully support liberty content permissions
Diffstat (limited to 'article_history.php')
| -rw-r--r-- | article_history.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/article_history.php b/article_history.php index d6edd6e..144bfba 100644 --- a/article_history.php +++ b/article_history.php @@ -20,8 +20,8 @@ require_once( '../bit_setup_inc.php' ); require_once( ARTICLES_PKG_PATH.'BitArticle.php' ); $gBitSystem->verifyPackage( 'articles' ); -$gBitSystem->verifyPermission( 'p_articles_read', tra( "Permission denied you cannot browse this article history" ) ); -$gBitSystem->verifyPermission( 'p_articles_read_history', tra( "Permission denied you cannot browse this article history" ) ); +$gBitSystem->verifyPermission( 'p_articles_read' ); +$gBitSystem->verifyPermission( 'p_articles_read_history' ); if( !isset( $_REQUEST["article_id"] ) ) { $gBitSystem->fatalError( tra( "No article indicated" )); @@ -35,7 +35,7 @@ if( !$gContent->isValid() || empty( $gContent->mInfo ) ) { } // 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( 'p_articles_edit_submission' ) || $gBitUser->hasPermission( 'p_articles_edit_submission' ) || $gBitUser->hasPermission( 'p_articles_edit_submission' ) || $gBitUser->isAdmin() ) ) { +if( $gContent->getField( 'status_id' ) != ARTICLE_STATUS_APPROVED && !( $gContent->hasUserPermission( 'p_articles_edit_submission' ) || $gContent->hasUserPermission( 'p_articles_edit_submission' ) || $gContent->hasUserPermission( 'p_articles_edit_submission' ) || $gBitUser->isAdmin() ) ) { $gBitSmarty->assign( 'msg', tra( "Permission denied you cannot view this article" ) ); $gBitSystem->display( "error.tpl" ); die; |
