From: Evan Prodromou Date: Mon, 9 Nov 2009 03:31:19 +0000 (-0500) Subject: add site admin to global primary nav X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a4905c03ba3df2cd07b2886880391e1534f24392;p=quix0rs-gnu-social.git add site admin to global primary nav --- diff --git a/lib/action.php b/lib/action.php index 80f398fbd7..edb70c3d9d 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'),