summaryrefslogtreecommitdiffstatshomepage
path: root/templates/toolbar.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/toolbar.inc.php')
-rw-r--r--templates/toolbar.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/toolbar.inc.php b/templates/toolbar.inc.php
index 593ee0f..92d8d59 100644
--- a/templates/toolbar.inc.php
+++ b/templates/toolbar.inc.php
@@ -4,6 +4,7 @@ if ($userservice->isLoggedOn()) {
$cUser = $userservice->getCurrentUser();
$cUserId = $userservice->getCurrentUserId();
$cUsername = $cUser[$userservice->getFieldName('username')];
+ $isAdmin = $userservice->isAdmin($cUser[$userservice->getFieldname('primary')]);
?>
<ul id="navigation">
@@ -14,6 +15,10 @@ if ($userservice->isLoggedOn()) {
<li><a href="<?php echo createURL('bookmarks', $cUsername . '?action=add'); ?>"><?php echo T_('Add a Bookmark'); ?></a></li>
<li class="access"><?php echo $cUsername?><a href="<?php echo $GLOBALS['root']; ?>?action=logout">(<?php echo T_('Log Out'); ?>)</a></li>
<li><a href="<?php echo createURL('about'); ?>"><?php echo T_('About'); ?></a></li>
+ <?php if($isAdmin): ?>
+ <li><a href="<?php echo createURL('admin', ''); ?>"><?php echo '['.T_('Admin').']'; ?></a></li>
+ <?php endif; ?>
+
</ul>
<?php