From d3463938685950b16d2cf6ce93d0fd1d8c1da3fb Mon Sep 17 00:00:00 2001 From: Christian Fowler Date: Fri, 6 Jul 2007 16:22:14 +0000 Subject: move to gContent perm functions so assigned content permissions work properly --- orphan_pages.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'orphan_pages.php') diff --git a/orphan_pages.php b/orphan_pages.php index 2af4054..794d762 100644 --- a/orphan_pages.php +++ b/orphan_pages.php @@ -1,8 +1,8 @@ verifyPackage( 'wiki' ); $gBitSystem->verifyFeature( 'wiki_list_orphans' ); -$gBitSystem->verifyPermission( 'p_wiki_view_page' ); +$gContent->verifyPermission( 'p_wiki_view_page' ); /* mass-remove: the checkboxes are sent as the array $_REQUEST["checked[]"], values are the wiki-PageNames, @@ -29,7 +29,7 @@ $gBitSystem->verifyPermission( 'p_wiki_view_page' ); if( isset( $_REQUEST["batch_submit"] ) && isset( $_REQUEST["checked"] ) && $_REQUEST["batch_submit"] == "remove_pages" ) { // Now check permissions to remove the selected pages - $gBitSystem->verifyPermission( 'p_wiki_remove_page' ); + $gContent->verifyPermission( 'p_wiki_remove_page' ); if( !empty( $_REQUEST['cancel'] )) { // user cancelled - just continue on, doing nothing -- cgit v1.3