diff options
| -rw-r--r-- | admin/schema_inc.php | 1 | ||||
| -rw-r--r-- | like_pages.php | 6 | ||||
| -rw-r--r-- | list_pages.php | 6 | ||||
| -rw-r--r-- | rankings.php | 6 |
4 files changed, 10 insertions, 9 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php index f9593a2..bc2b6ff 100644 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -83,6 +83,7 @@ $gBitInstaller->registerUserPermissions( WIKI_PKG_NAME, array( array('p_wiki_edit_copyright', 'Can edit copyright notices', 'registered', WIKI_PKG_NAME), array('p_wiki_edit_dynvar', 'Can edit dynamic variables', 'editors', WIKI_PKG_NAME), array('p_wiki_edit_page', 'Can edit pages', 'registered', WIKI_PKG_NAME), + array('p_wiki_list_pages', 'Can list pages', 'registered', WIKI_PKG_NAME), array('p_wiki_lock_page', 'Can lock pages', 'editors', WIKI_PKG_NAME), array('p_wiki_remove_page', 'Can remove a wiki page', 'editors', WIKI_PKG_NAME), array('p_wiki_rename_page', 'Can rename pages', 'editors', WIKI_PKG_NAME), diff --git a/like_pages.php b/like_pages.php index 5e7d8aa..296e2d0 100644 --- a/like_pages.php +++ b/like_pages.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/like_pages.php,v 1.13 2007/09/14 17:07:20 spiderr Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/like_pages.php,v 1.14 2007/10/12 16:14:14 spiderr Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,7 @@ * 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 * - * $Id: like_pages.php,v 1.13 2007/09/14 17:07:20 spiderr Exp $ + * $Id: like_pages.php,v 1.14 2007/10/12 16:14:14 spiderr Exp $ * @package wiki * @subpackage functions */ @@ -21,7 +21,7 @@ include_once( WIKI_PKG_PATH.'BitPage.php'); include_once( WIKI_PKG_PATH.'lookup_page_inc.php' ); $gBitSystem->verifyPackage( 'wiki' ); $gBitSystem->verifyFeature( 'wiki_like_pages' ); -$gContent->verifyViewPermission(); +$gBitSystem->verifyPermission( 'p_wiki_list_pages' ); // Get the page from the request var or default it to HomePage if( !$gContent->isValid() ) { diff --git a/list_pages.php b/list_pages.php index 245d775..39e81cd 100644 --- a/list_pages.php +++ b/list_pages.php @@ -1,8 +1,8 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/list_pages.php,v 1.21 2007/08/23 08:10:22 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/list_pages.php,v 1.22 2007/10/12 16:14:14 spiderr Exp $ * - * $Id: list_pages.php,v 1.21 2007/08/23 08:10:22 squareing Exp $ + * $Id: list_pages.php,v 1.22 2007/10/12 16:14:14 spiderr Exp $ * @package wiki * @subpackage functions */ @@ -16,7 +16,7 @@ require_once( WIKI_PKG_PATH.'BitPage.php' ); // verify stuff $gBitSystem->verifyPackage( 'wiki' ); $gBitSystem->verifyFeature( 'wiki_list_pages' ); -$gBitSystem->verifyPermission( 'p_wiki_view_page' ); +$gBitSystem->verifyPermission( 'p_wiki_list_pages' ); $gContent = new BitPage(); $gContent->invokeServices( 'content_list_function', $_REQUEST ); diff --git a/rankings.php b/rankings.php index c4dfdb4..2fdcc61 100644 --- a/rankings.php +++ b/rankings.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/rankings.php,v 1.10 2007/09/14 17:07:20 spiderr Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/rankings.php,v 1.11 2007/10/12 16:14:14 spiderr Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,7 @@ * 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 * - * $Id: rankings.php,v 1.10 2007/09/14 17:07:20 spiderr Exp $ + * $Id: rankings.php,v 1.11 2007/10/12 16:14:14 spiderr Exp $ * @package wiki * @subpackage functions */ @@ -20,7 +20,7 @@ require_once( '../bit_setup_inc.php' ); $gBitSystem->verifyPackage( 'wiki' ); $gBitSystem->verifyFeature( 'wiki_rankings' ); -$gContent->verifyViewPermission(); +$gBitSystem->verifyPermission( 'p_wiki_list_pages' ); $rankingOptions = array( array( |
