mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 03:12:41 +01:00
26 lines
513 B
PHP
26 lines
513 B
PHP
|
<?php
|
||
|
|
||
|
final class PeopleCapabilityBrowseUserDirectory
|
||
|
extends PhabricatorPolicyCapability {
|
||
|
|
||
|
const CAPABILITY = 'people.browse';
|
||
|
|
||
|
public function getCapabilityKey() {
|
||
|
return self::CAPABILITY;
|
||
|
}
|
||
|
|
||
|
public function getCapabilityName() {
|
||
|
return pht('Can Browse User Directory');
|
||
|
}
|
||
|
|
||
|
public function shouldAllowPublicPolicySetting() {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
public function describeCapabilityRejection() {
|
||
|
return pht(
|
||
|
'You do not have permission to browse the user directory.');
|
||
|
}
|
||
|
|
||
|
}
|