summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2008-10-20 21:40:10 +0000
committerChristian Fowler <spider@viovio.com>2008-10-20 21:40:10 +0000
commit549f519e6f15e272d740b1a758c4b7cb0d23ddf8 (patch)
treee69c38c934911e4cea61fcceba3328506a367f3f /templates
parent5ddff92e7ef2674c5e533fa1d368c9f3caa3202a (diff)
downloadfisheye-549f519e6f15e272d740b1a758c4b7cb0d23ddf8.tar.gz
fisheye-549f519e6f15e272d740b1a758c4b7cb0d23ddf8.tar.bz2
fisheye-549f519e6f15e272d740b1a758c4b7cb0d23ddf8.zip
BIG CHANGE: migrate p_*_edit permissions to p_*_update permission naming convention, hasEditPermission is now hasUpdatePermission, many explicit perm checks have been cleaned up to hasUpdatePermission
Diffstat (limited to 'templates')
-rw-r--r--templates/view_gallery.tpl2
-rw-r--r--templates/view_gallery_images_inc.tpl2
-rw-r--r--templates/view_image.tpl4
3 files changed, 4 insertions, 4 deletions
diff --git a/templates/view_gallery.tpl b/templates/view_gallery.tpl
index 4b5496e..427fa3a 100644
--- a/templates/view_gallery.tpl
+++ b/templates/view_gallery.tpl
@@ -5,7 +5,7 @@
<div class="header">
<div class="floaticon">
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='icon' serviceHash=$gContent->mInfo}
- {if $gContent->hasEditPermission()}
+ {if $gContent->hasUpdatePermission()}
<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}
diff --git a/templates/view_gallery_images_inc.tpl b/templates/view_gallery_images_inc.tpl
index 38ebf26..ed2f7ba 100644
--- a/templates/view_gallery_images_inc.tpl
+++ b/templates/view_gallery_images_inc.tpl
@@ -56,7 +56,7 @@
<td style="text-align:center;">
{if $galItem->mInfo.content_type_guid != 'fisheyegallery' }
{if $gBitSystem->isFeatureActive( 'site_fancy_zoom' )}
- {if $gContent->hasEditPermission() || $gGallery && $gGallery->getPreference( 'link_original_images' )}
+ {if $gContent->hasUpdatePermission() || $gGallery && $gGallery->getPreference( 'link_original_images' )}
<a href="{$galItem->mInfo.source_url|escape}">
{else}
<a href="{$galItem->mInfo.thumbnail_url.large}">
diff --git a/templates/view_image.tpl b/templates/view_image.tpl
index d89974e..62f469e 100644
--- a/templates/view_image.tpl
+++ b/templates/view_image.tpl
@@ -7,7 +7,7 @@
{if !$liberty_preview}
<div class="floaticon">
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='icon' serviceHash=$gContent->mInfo}
- {if $gContent->hasEditPermission()}
+ {if $gContent->hasUpdatePermission()}
<a title="{tr}Edit{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}edit_image.php?image_id={$gContent->mImageId}">{biticon ipackage="icons" iname="accessories-text-editor" iexplain="Edit Image"}</a>
<a title="{tr}Delete{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}edit_image.php?image_id={$gContent->mImageId}&amp;delete=1">{biticon ipackage="icons" iname="edit-delete" iexplain="Delete Image"}</a>
{/if}
@@ -23,7 +23,7 @@
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$gContent->mInfo}
<div class="image">
{if $gBitSystem->isFeatureActive( 'site_fancy_zoom' )}
- {if $gContent->hasEditPermission() || $gGallery && $gGallery->getPreference( 'link_original_images' )}
+ {if $gContent->hasUpdatePermission() || $gGallery && $gGallery->getPreference( 'link_original_images' )}
<a href="{$gContent->mInfo.source_url|escape}">
{else}
<a href="{$gContent->mInfo.thumbnail_url.large}">