diff options
| author | Christian Fowler <spider@viovio.com> | 2007-03-23 21:31:54 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2007-03-23 21:31:54 +0000 |
| commit | 4f98537a3538fd20bd6ff10901fb114cad793bb0 (patch) | |
| tree | 577df9d73f1246736bb4c1964df9e79bcfcaabd9 /edit.php | |
| parent | f95cb2099a9f17e7166d096d422b6326895d27eb (diff) | |
| download | fisheye-4f98537a3538fd20bd6ff10901fb114cad793bb0.tar.gz fisheye-4f98537a3538fd20bd6ff10901fb114cad793bb0.tar.bz2 fisheye-4f98537a3538fd20bd6ff10901fb114cad793bb0.zip | |
break hasUserPermission with fatal param into separate verifyPermission function, convert hasPermission into much more useful checkContentPermission
Diffstat (limited to 'edit.php')
| -rw-r--r-- | edit.php | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.19 2007/01/01 16:22:40 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.20 2007/03/23 21:31:53 spiderr Exp $ * @package fisheye * @subpackage functions */ @@ -20,11 +20,10 @@ 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'); -} elseif( !$gContent->hasUserPermission( 'p_fisheye_edit' ) ) { - // This user does not own this gallery and they have not been granted the permission to edit this gallery - $gBitSystem->fatalError( tra( "You cannot edit this image gallery" ) ); } +$gContent->verifyPermission( 'p_fisheye_edit' ); + if( $gBitUser->hasPermission( 'p_fisheye_change_thumb_size' ) ) { $thumbnailSizes = array( 'avatar' => tra( 'Avatar (100x100 pixels)' ), |
