summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-04-11 17:52:09 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-04-11 17:52:09 +0000
commit1987dafa431510f3ccff386865a1e59c2aeae45a (patch)
treed97514daab4981ea158a9981e24cf51cca0dec27 /index.php
parent5ba45d8c3567b87fd738f4208c1133d11be57c03 (diff)
downloadarticles-1987dafa431510f3ccff386865a1e59c2aeae45a.tar.gz
articles-1987dafa431510f3ccff386865a1e59c2aeae45a.tar.bz2
articles-1987dafa431510f3ccff386865a1e59c2aeae45a.zip
more permissions housekeeping and tidyup
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index a48066b..551a88a 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,5 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_articles/index.php,v 1.14 2006/04/11 13:03:24 squareing Exp $
+// $Header: /cvsroot/bitweaver/_bit_articles/index.php,v 1.15 2006/04/11 17:52:08 squareing Exp $
// Copyright( c )2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
@@ -20,7 +20,7 @@ if( !empty( $_REQUEST['article_id'] ) ) {
require_once( ARTICLES_PKG_PATH.'lookup_article_inc.php' );
include_once( ARTICLES_PKG_PATH.'article_filter_inc.php' );
-if( $gBitUser->isAdmin() || $gBitUser->hasPermission( 'bit_p_admin_cms' ) ) {
+if( $gBitUser->isAdmin() || $gBitUser->hasPermission( 'p_articles_admin' ) ) {
$_REQUEST['status_id'] = !empty( $_REQUEST['status_id'] ) ? $_REQUEST['status_id'] : ARTICLE_STATUS_APPROVED;
$_REQUEST['max_records'] = !empty( $_REQUEST['max_records'] ) ? $_REQUEST['max_records'] : $gBitSystem->getConfig( 'max_articles' );
$_REQUEST['topic_id'] = !empty( $_REQUEST['topic_id'] ) ? $_REQUEST['topic_id'] : NULL;