aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/goto/cat_modify.tpl
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2008-10-19 15:37:43 +0000
committervdigital <vdigital@piwigo.org>2008-10-19 15:37:43 +0000
commitaa1a71488f556c24eac6171dbde569faea3faeaf (patch)
treec1c76e2ab6431b9e90fdb90375770af6dcfed68a /admin/template/goto/cat_modify.tpl
parenta48c2e52816441e40d69bfd145813c2cd2d056af (diff)
Jump to category icon is removed on user forbidden categories (previously check_restrictions was leading administrators to the access denied page).
git-svn-id: http://piwigo.org/svn/branches/2.0@2776 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/template/goto/cat_modify.tpl')
-rw-r--r--admin/template/goto/cat_modify.tpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/admin/template/goto/cat_modify.tpl b/admin/template/goto/cat_modify.tpl
index b9746ffe1..418f87539 100644
--- a/admin/template/goto/cat_modify.tpl
+++ b/admin/template/goto/cat_modify.tpl
@@ -10,7 +10,9 @@
<h3>{$CATEGORIES_NAV}</h3>
<ul class="categoryActions">
+ {if cat_admin_access($CAT_ID)}
<li><a href="{$U_JUMPTO}" title="{'jump to category'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_jump-to.png" class="button" alt="{'jump to category'|@translate}" /></a></li>
+ {/if}
{if isset($U_MANAGE_ELEMENTS) }
<li><a href="{$U_MANAGE_ELEMENTS}" title="{'manage category elements'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_elements.png" class="button" alt="{'elements'|@translate}" /></a></li>
<li><a href="{$U_MANAGE_RANKS}" title="{'manage image ranks'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/ranks.png" class="button" alt="{'ranks'|@translate}" /></a></li>