diff options
| author | spiderr <spider@viovio.com> | 2013-09-25 13:24:29 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2013-09-25 13:24:29 -0400 |
| commit | 6ab28cfd3a2eea947ed13ab2e34a530e22de8810 (patch) | |
| tree | 9f6bb09dc686dc82f080dde4d954b31217f1bc1f /edit_image.php | |
| parent | cc48d558ccad46f775ee0e8196787a0a70edec28 (diff) | |
| download | fisheye-6ab28cfd3a2eea947ed13ab2e34a530e22de8810.tar.gz fisheye-6ab28cfd3a2eea947ed13ab2e34a530e22de8810.tar.bz2 fisheye-6ab28cfd3a2eea947ed13ab2e34a530e22de8810.zip | |
handle edit_image for non valid id
Diffstat (limited to 'edit_image.php')
| -rw-r--r-- | edit_image.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/edit_image.php b/edit_image.php index 122a083..59bb4a0 100644 --- a/edit_image.php +++ b/edit_image.php @@ -16,7 +16,11 @@ global $gBitSystem; include_once( FISHEYE_PKG_PATH.'image_lookup_inc.php' ); -$gContent->verifyUpdatePermission(); +if( $gContent->isValid() ) { + $gContent->verifyUpdatePermission(); +} else { + bit_redirect( FISHEYE_PKG_URL.'?user_id='.$gBitUser->mUserId ); +} //Utility function, maybe should be moved for use elsewhere. Seems like it has a multitude of possible hook points function convertSmartQuotes($string) @@ -135,7 +139,7 @@ if( $gContent->mContentId ) { if( $gBitSystem->isFeatureActive( 'fisheye_show_all_to_admins' ) && $gBitUser->hasPermission( 'p_fisheye_admin' ) ) { unset( $getHash['user_id'] ); } elseif( $gBitSystem->isFeatureActive( 'fisheye_show_public_on_upload' ) ) { - $getHash['show_public'] = TRUE; +// $getHash['show_public'] = TRUE; } $galleryTree = $gFisheyeGallery->generateList( $getHash, array( 'name' => "gallery_id", 'id' => "gallerylist", 'item_attributes' => array( 'class'=>'listingtitle'), 'radio_checkbox' => TRUE, ), true ); $gBitSmarty->assign_by_ref( 'galleryTree', $galleryTree ); |
