summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-01-27 12:45:57 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-01-27 12:45:57 +0000
commit8c70e4fddba48381edfc29597501fa3f74a30e16 (patch)
treed0ea6ccc3ce71d8256340edc1e69778f707d3596 /templates
parentcba520df3d05b7d6090255bb432d40bbbb305b04 (diff)
downloadfisheye-8c70e4fddba48381edfc29597501fa3f74a30e16.tar.gz
fisheye-8c70e4fddba48381edfc29597501fa3f74a30e16.tar.bz2
fisheye-8c70e4fddba48381edfc29597501fa3f74a30e16.zip
fix upload link display when gallery admin is wandering around and he is allowed to upload to all galleries
Diffstat (limited to 'templates')
-rw-r--r--templates/view_gallery.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/view_gallery.tpl b/templates/view_gallery.tpl
index c429760..281fc06 100644
--- a/templates/view_gallery.tpl
+++ b/templates/view_gallery.tpl
@@ -9,7 +9,7 @@
<a title="{tr}Edit{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}edit.php?gallery_id={$gContent->mGalleryId}">{biticon ipackage="icons" iname="document-properties" iexplain="Edit"}</a>
<a title="{tr}Image Order{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}image_order.php?gallery_id={$gContent->mGalleryId}">{biticon ipackage=fisheye iname="order" iexplain="Image Order"}</a>
{/if}
- {if $gContent->hasUserPermission('p_fisheye_upload') || $gContent->getPreference('is_public')}
+ {if ( $gBitSystem->isFeatureActive( 'fisheye_show_all_to_admins' ) && $gBitUser->hasPermission( 'p_fisheye_admin' )) || ( $gContent->hasUserPermission('p_fisheye_upload') || $gContent->getPreference('is_public'))}
<a title="{tr}Add Image{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}upload.php?gallery_id={$gContent->mGalleryId}">{biticon ipackage="icons" iname="go-up" iexplain="Add Image"}</a>{if $gContent->getPreference('is_public')}<span class="small">({tr}Public{/tr})</span>{/if}
{/if}
{if $gContent->hasUserPermission('p_fisheye_admin')}