]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add site admin to global primary nav
authorEvan Prodromou <evan@status.net>
Mon, 9 Nov 2009 03:31:19 +0000 (22:31 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 9 Nov 2009 03:31:19 +0000 (22:31 -0500)
lib/action.php

index 80f398fbd77e25b8736af0a5c7cb33cae06cb5fd..edb70c3d9d7b8c27a50a34664bfdd3af7940b6bb 100644 (file)
@@ -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'),