summaryrefslogtreecommitdiff
path: root/read.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-04-11 13:03:25 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-04-11 13:03:25 +0000
commit5ba45d8c3567b87fd738f4208c1133d11be57c03 (patch)
tree996d1f3ba1b0410275a8074f5af351aa6c022a11 /read.php
parent9090a1dfd56f072cffec76f040a5a6cf0b1c003c (diff)
downloadarticles-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.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/read.php b/read.php
index 46230be..2ba32e0 100644
--- a/read.php
+++ b/read.php
@@ -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();