Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/people/policyrule/PhabricatorAdministratorsPolicyRule.php
12256 views
1
<?php
2
3
final class PhabricatorAdministratorsPolicyRule extends PhabricatorPolicyRule {
4
5
public function getRuleDescription() {
6
return pht('administrators');
7
}
8
9
public function applyRule(
10
PhabricatorUser $viewer,
11
$value,
12
PhabricatorPolicyInterface $object) {
13
return $viewer->getIsAdmin();
14
}
15
16
public function getValueControlType() {
17
return self::CONTROL_TYPE_NONE;
18
}
19
20
}
21
22