diff options
| author | Christian Fowler <spider@viovio.com> | 2007-09-13 15:31:05 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2007-09-13 15:31:05 +0000 |
| commit | 652edd6a6d9e362636000ce77c7e9d7fcf0f3bec (patch) | |
| tree | 974da20ef8f9b42e8f290a43b84ccef5fe753269 /upload.php | |
| parent | 9442a3ab05db998f9938636331a696fcb8a374b3 (diff) | |
| download | fisheye-652edd6a6d9e362636000ce77c7e9d7fcf0f3bec.tar.gz fisheye-652edd6a6d9e362636000ce77c7e9d7fcf0f3bec.tar.bz2 fisheye-652edd6a6d9e362636000ce77c7e9d7fcf0f3bec.zip | |
migrate to verifyEditPermission, add support for content permission upload ability to gallery not owned by current user
Diffstat (limited to 'upload.php')
| -rw-r--r-- | upload.php | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/upload.php,v 1.31 2007/07/12 08:18:15 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/upload.php,v 1.32 2007/09/13 15:31:05 spiderr Exp $ * @package fisheye * @subpackage functions */ @@ -104,6 +104,13 @@ if( $gBitSystem->isFeatureActive( 'fisheye_show_all_to_admins' ) && $gBitUser->h $listHash['show_public'] = TRUE; } $galleryList = $gFisheyeGallery->getList( $listHash ); +if( @BitBase::verifyId( $_REQUEST['gallery_id'] ) && empty( $galleryList['data'][$_REQUEST['gallery_id']] ) ) { + $addGallery = new FisheyeGallery( $_REQUEST['gallery_id'] ); + if( $addGallery->load() && $addGallery->hasViewPermission() ) { + $galleryList['data'][$_REQUEST['gallery_id']] = $addGallery->mInfo; + } +} + $gBitSmarty->assign_by_ref( 'galleryList', $galleryList['data'] ); if( $gBitSystem->isPackageActive( 'gigaupload' ) ) { |
