summaryrefslogtreecommitdiff
path: root/app/layout/header.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/layout/header.phtml')
-rw-r--r--app/layout/header.phtml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/layout/header.phtml b/app/layout/header.phtml
index 2e42bfdea..028e63d8a 100644
--- a/app/layout/header.phtml
+++ b/app/layout/header.phtml
@@ -75,6 +75,12 @@ if (Minz_Configuration::canLogIn()) {
<li class="item"><a href="<?php echo _url('configure', 'queries'); ?>"><?php echo _t('queries'); ?></a></li>
<li class="separator"></li>
<li class="item"><a href="<?php echo _url('configure', 'users'); ?>"><?php echo _t('users'); ?></a></li>
+ <?php
+ $current_user = Minz_Session::param('currentUser', '');
+ if (Minz_Configuration::isAdmin($current_user)) {
+ ?>
+ <li class="item"><a href="<?php echo _url('update', 'index'); ?>"><?php echo _t('update'); ?></a></li>
+ <?php } ?>
<li class="separator"></li>
<li class="item"><a href="<?php echo _url('stats', 'index'); ?>"><?php echo _t('stats'); ?></a></li>
<li class="item"><a href="<?php echo _url('index', 'logs'); ?>"><?php echo _t('logs'); ?></a></li>