From 7bac05e60af272c8a945fa1e46eef69e19af9c17 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Tue, 11 Apr 2006 13:07:42 +0000 Subject: rename permissions to new standard using: p___[] --- view.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'view.php') diff --git a/view.php b/view.php index e4ad517..0a486e3 100644 --- a/view.php +++ b/view.php @@ -1,6 +1,6 @@ verifyPackage( 'pigeonholes' ); -$gBitSystem->verifyPermission( 'bit_p_view_pigeonholes' ); +$gBitSystem->verifyPermission( 'p_pigeonholes_view' ); include_once( PIGEONHOLES_PKG_PATH.'lookup_pigeonholes_inc.php' ); @@ -35,7 +35,7 @@ $gStructure = new LibertyStructure( $gContent->mInfo['root_structure_id'] ); $gStructure->load(); if( !empty( $_REQUEST['action'] ) ) { - if( $_REQUEST['action'] == 'dismember' && !empty( $_REQUEST['content_id'] ) && !empty( $_REQUEST['parent_id'] ) && $gBitUser->hasPermission( 'bit_p_edit_pigeonholes' ) ) { + if( $_REQUEST['action'] == 'dismember' && !empty( $_REQUEST['content_id'] ) && !empty( $_REQUEST['parent_id'] ) && $gBitUser->hasPermission( 'p_pigeonholes_edit' ) ) { if( $gContent->expungePigeonholeMember( array( 'parent_id' => $_REQUEST['content_id'], 'member_id' => $_REQUEST['parent_id'] ) ) ) { $feedback['success'] = tra( 'The item was successfully removed' ); } else { -- cgit v1.3