summaryrefslogtreecommitdiff
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
commitd1b9fd1a7b819868f8e81fe236ed43b6e574a9cd (patch)
tree2bccfd1eb79589883be2b4ffd8db4f1de3b00d37
parenteb08b8f0000b8bf35bb4a30a31003ed2d30c631f (diff)
downloadfisheye-d1b9fd1a7b819868f8e81fe236ed43b6e574a9cd.tar.gz
fisheye-d1b9fd1a7b819868f8e81fe236ed43b6e574a9cd.tar.bz2
fisheye-d1b9fd1a7b819868f8e81fe236ed43b6e574a9cd.zip
more permissions housekeeping and tidyup
-rw-r--r--admin/schema_inc.php1
-rw-r--r--edit.php4
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 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.9 2006/04/11 13:04:24 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.10 2006/04/11 17:52:09 squareing Exp $
* @package fisheye
* @subpackage functions
*/
@@ -25,7 +25,7 @@ if (empty($_REQUEST['gallery_id'])) {
$gBitSystem->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)' ),