setBaseURI(new PhutilURI($this->getApplicationURI())); $is_admin = $this->getRequest()->getUser()->getIsAdmin(); if ($is_admin) { $nav->addLabel('Create Users'); $nav->addFilter('edit', 'Create New User'); if (PhabricatorEnv::getEnvConfig('ldap.auth-enabled') === true) { $nav->addFilter('ldap', 'Import from LDAP'); } } $nav->addLabel('Directory'); $nav->addFilter('people', 'User Directory', $this->getApplicationURI()); if ($is_admin) { $nav->addLabel('Logs'); $nav->addFilter('logs', 'Activity Logs'); } return $nav; } }