Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/application/PhabricatorPeopleApplication.php
| Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | final class PhabricatorPeopleApplication extends PhabricatorApplication { | ||||
| public function getRemarkupRules() { | public function getRemarkupRules() { | ||||
| return array( | return array( | ||||
| new PhabricatorMentionRemarkupRule(), | new PhabricatorMentionRemarkupRule(), | ||||
| ); | ); | ||||
| } | } | ||||
| protected function getCustomCapabilities() { | protected function getCustomCapabilities() { | ||||
| return array( | return array( | ||||
| PeopleCreateUsersCapability::CAPABILITY => array( | |||||
| 'default' => PhabricatorPolicies::POLICY_ADMIN, | |||||
| ), | |||||
| PeopleBrowseUserDirectoryCapability::CAPABILITY => array(), | PeopleBrowseUserDirectoryCapability::CAPABILITY => array(), | ||||
| ); | ); | ||||
| } | } | ||||
| public function loadStatus(PhabricatorUser $user) { | public function loadStatus(PhabricatorUser $user) { | ||||
| if (!$user->getIsAdmin()) { | if (!$user->getIsAdmin()) { | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines | |||||