summaryrefslogtreecommitdiff
path: root/lib/action.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-11-08 22:31:19 -0500
committerEvan Prodromou <evan@status.net>2009-11-08 22:31:19 -0500
commita4905c03ba3df2cd07b2886880391e1534f24392 (patch)
tree119b05a6f771316bd0185180e030b3b5c624a73d /lib/action.php
parentbadd8ccccadb4eb3697c8d68619e4ec931b947c5 (diff)
add site admin to global primary nav
Diffstat (limited to 'lib/action.php')
-rw-r--r--lib/action.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/action.php b/lib/action.php
index 80f398fbd..edb70c3d9 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -434,6 +434,10 @@ class Action extends HTMLOutputter // lawsuit
$this->menuItem(common_local_url($connect),
_('Connect'), _('Connect to services'), false, 'nav_connect');
}
+ if ($user->hasRight(Right::CONFIGURESITE)) {
+ $this->menuItem(common_local_url('siteadminpanel'),
+ _('Admin'), _('Change site configuration'), false, 'nav_admin');
+ }
if (common_config('invite', 'enabled')) {
$this->menuItem(common_local_url('invite'),
_('Invite'),