Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/controller/PhabricatorPeopleController.php
| Show All 22 Lines | public function buildSideNavView($for_app = false) { | ||||
| if (!$name) { | if (!$name) { | ||||
| $viewer = $this->getRequest()->getUser(); | $viewer = $this->getRequest()->getUser(); | ||||
| id(new PhabricatorPeopleSearchEngine()) | id(new PhabricatorPeopleSearchEngine()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->addNavigationItems($nav->getMenu()); | ->addNavigationItems($nav->getMenu()); | ||||
| if ($viewer->getIsAdmin()) { | if ($viewer->getIsAdmin()) { | ||||
| $nav->addLabel(pht('User Administration')); | $nav->addLabel(pht('User Administration')); | ||||
| if (PhabricatorLDAPAuthProvider::getLDAPProvider()) { | |||||
| $nav->addFilter('ldap', pht('Import from LDAP')); | |||||
| } | |||||
| $nav->addFilter('logs', pht('Activity Logs')); | $nav->addFilter('logs', pht('Activity Logs')); | ||||
| $nav->addFilter('invite', pht('Email Invitations')); | $nav->addFilter('invite', pht('Email Invitations')); | ||||
| } | } | ||||
| } | } | ||||
| return $nav; | return $nav; | ||||
| } | } | ||||
| public function buildApplicationMenu() { | public function buildApplicationMenu() { | ||||
| return $this->buildSideNavView(true)->getMenu(); | return $this->buildSideNavView(true)->getMenu(); | ||||
| } | } | ||||
| } | } | ||||