add site admin to global primary nav

This commit is contained in:
Evan Prodromou 2009-11-08 22:31:19 -05:00
parent badd8cccca
commit a4905c03ba

View File

@ -434,6 +434,10 @@ class Action extends HTMLOutputter // lawsuit
$this->menuItem(common_local_url($connect), $this->menuItem(common_local_url($connect),
_('Connect'), _('Connect to services'), false, 'nav_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')) { if (common_config('invite', 'enabled')) {
$this->menuItem(common_local_url('invite'), $this->menuItem(common_local_url('invite'),
_('Invite'), _('Invite'),