Page MenuHomec4science

PhabricatorAdministratorsPolicyRule.php
No OneTemporary

File Metadata

Created
Fri, Nov 29, 18:19

PhabricatorAdministratorsPolicyRule.php

<?php
final class PhabricatorAdministratorsPolicyRule extends PhabricatorPolicyRule {
public function getRuleDescription() {
return pht('administrators');
}
public function applyRule(
PhabricatorUser $viewer,
$value,
PhabricatorPolicyInterface $object) {
return $viewer->getIsAdmin();
}
public function getValueControlType() {
return self::CONTROL_TYPE_NONE;
}
}

Event Timeline