From d1b9fd1a7b819868f8e81fe236ed43b6e574a9cd Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Tue, 11 Apr 2006 17:52:09 +0000 Subject: more permissions housekeeping and tidyup --- admin/schema_inc.php | 1 + edit.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/schema_inc.php b/admin/schema_inc.php index 5c63373..fc1e75f 100644 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -98,6 +98,7 @@ $gBitInstaller->registerUserPermissions( FISHEYE_PKG_NAME, array( array('p_fisheye_upload', 'Can upload images to gallery', 'registered', FISHEYE_PKG_NAME), array('p_fisheye_admin', 'Can admin image galleries', 'editors', FISHEYE_PKG_NAME), array('p_fisheye_upload_nonimages', 'Can upload non_image files', 'editors', FISHEYE_PKG_NAME) + array('p_fisheye_change_thumb_size', 'Can set the thumbnail size for a gallery', 'editors', FISHEYE_PKG_NAME) ) ); ?> diff --git a/edit.php b/edit.php index 234cacb..54d1c25 100644 --- a/edit.php +++ b/edit.php @@ -1,6 +1,6 @@ fatalError( tra( "You cannot edit this image gallery" ) ); } -if( $gBitUser->hasPermission( 'bit_p_change_thumbnail_size' ) ) { +if( $gBitUser->hasPermission( 'p_fisheye_change_thumb_size' ) ) { $thumbnailSizes = array( 'avatar' => tra( 'Avatar (100x75 pixels)' ), 'small' => tra( 'Small (160x120 pixels)' ), -- cgit v1.3