summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2009-05-25 17:28:03 +0000
committerChristian Fowler <spider@viovio.com>2009-05-25 17:28:03 +0000
commitdca1927a1c23099d0b62ddd3fd38f6ce229a4698 (patch)
tree2c695eae3dd524896f5583bab5ba8edbd0a9af01
parentf352390f60acf9cb4c6c020eec283c75d538e6e0 (diff)
downloadkernel-dca1927a1c23099d0b62ddd3fd38f6ce229a4698.tar.gz
kernel-dca1927a1c23099d0b62ddd3fd38f6ce229a4698.tar.bz2
kernel-dca1927a1c23099d0b62ddd3fd38f6ce229a4698.zip
wrap link to kernel admin in gBitUser->isAdmin since package admin menus will show for non-global admins now
-rw-r--r--templates/top_bar.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/top_bar.tpl b/templates/top_bar.tpl
index f121569..23e1945 100644
--- a/templates/top_bar.tpl
+++ b/templates/top_bar.tpl
@@ -8,9 +8,9 @@
{if $adminMenu}
<li class="m-admin{if $smarty.const.ACTIVE_PACKAGE eq 'kernel'} current{/if}">
- <a accesskey="A" class="{if $gBitSystem->isFeatureActive( 'site_top_bar_dropdown' )}head{else}item{/if}{if $smarty.const.ACTIVE_PACKAGE eq 'kernel'} selected{/if}" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php">
+ {if $gBitUser->isAdmin()}<a accesskey="A" class="{if $gBitSystem->isFeatureActive( 'site_top_bar_dropdown' )}head{else}item{/if}{if $smarty.const.ACTIVE_PACKAGE eq 'kernel'} selected{/if}" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php">{/if}
<strong>{tr}Administration{/tr}</strong>
- </a>
+ {if $gBitUser->isAdmin()}</a>{/if}
{if $gBitSystem->isFeatureActive( 'site_top_bar_dropdown' )}
<ul>
{foreach key=key item=menu from=$adminMenu}