diff options
| author | Christian Fowler <spider@viovio.com> | 2007-09-10 17:08:02 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2007-09-10 17:08:02 +0000 |
| commit | 479d538a7ee242957649d21d55890f273bc7c035 (patch) | |
| tree | 15bd9774bbd20fb92757aa067428b39992a336d7 /templates/view_gallery.tpl | |
| parent | 8e37ea6ca1da8f152771e35358a35b82a8b9d6f1 (diff) | |
| download | fisheye-479d538a7ee242957649d21d55890f273bc7c035.tar.gz fisheye-479d538a7ee242957649d21d55890f273bc7c035.tar.bz2 fisheye-479d538a7ee242957649d21d55890f273bc7c035.zip | |
convert to hasEditPerm and prevent global perm checking
Diffstat (limited to 'templates/view_gallery.tpl')
| -rw-r--r-- | templates/view_gallery.tpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/view_gallery.tpl b/templates/view_gallery.tpl index e71a36e..57aec85 100644 --- a/templates/view_gallery.tpl +++ b/templates/view_gallery.tpl @@ -5,14 +5,14 @@ <div class="header"> <div class="floaticon"> {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='icon' serviceHash=$gContent->mInfo} - {if $gContent->hasUserPermission( 'p_fisheye_edit' )} + {if $gContent->hasEditPermission()} <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 ( $gBitSystem->isFeatureActive( 'fisheye_show_all_to_admins' ) && $gBitUser->hasPermission( 'p_fisheye_admin' )) || ( $gContent->hasUserPermission('p_fisheye_upload') || $gContent->getPreference('is_public'))} + {if $gContent->hasUserPermission('p_fisheye_upload', 1, 0) || $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')} + {if $gContent->hasAdminPermission()} <a title="{tr}User Permissions{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}edit.php?gallery_id={$gContent->mGalleryId}&delete=1">{biticon ipackage="icons" iname="edit-delete" iexplain="Delete Gallery"}</a> {* appears broken at the moment <a title="{tr}User Permissions{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}edit_gallery_perms.php?gallery_id={$gContent->mGalleryId}">{biticon ipackage="icons" iname="emblem-shared" iexplain="User Permissions"}</a> *} {/if} |
