summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2008-10-03 17:20:15 +0000
committerwjames5 <will@tekimaki.com>2008-10-03 17:20:15 +0000
commit23db543a339dadf6bd25d7096dc828eb6456bb46 (patch)
tree4ade6d23435e27e58fd0e0e03379554d0674d4fc /edit.php
parenta4b38a26e6a7f90463d86e37893012482e842290 (diff)
downloadfisheye-23db543a339dadf6bd25d7096dc828eb6456bb46.tar.gz
fisheye-23db543a339dadf6bd25d7096dc828eb6456bb46.tar.bz2
fisheye-23db543a339dadf6bd25d7096dc828eb6456bb46.zip
CORE CHANGE: cleave Create permission from Edit permission so that they are distinct. See mailing list for more details
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/edit.php b/edit.php
index c152c21..7f4f670 100644
--- a/edit.php
+++ b/edit.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.29 2008/10/02 16:10:50 wjames5 Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.30 2008/10/03 17:20:15 wjames5 Exp $
* @package fisheye
* @subpackage functions
*/
@@ -18,12 +18,12 @@ global $gBitSystem;
include_once( FISHEYE_PKG_PATH.'gallery_lookup_inc.php' );
// Ensure the user has the permission to create new image galleries
-if (empty($_REQUEST['gallery_id'])) {
- $gBitSystem->verifyPermission('p_fisheye_create');
+if( $gContent->isValid() ){
+ $gContent->verifyEditPermission();
+}else{
+ $gContent->verifyCreatePermission();
}
-$gContent->verifyEditPermission();
-
if( $gBitUser->hasPermission( 'p_fisheye_change_thumb_size' ) ) {
$thumbnailSizes = array(
'avatar' => tra( 'Avatar (100x100 pixels)' ),