[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/policy/rule/ -> PhabricatorPolicyRuleAdministrators.php (source)

   1  <?php
   2  
   3  final class PhabricatorPolicyRuleAdministrators
   4    extends PhabricatorPolicyRule {
   5  
   6    public function getRuleDescription() {
   7      return pht('administrators');
   8    }
   9  
  10    public function applyRule(PhabricatorUser $viewer, $value) {
  11      return $viewer->getIsAdmin();
  12    }
  13  
  14    public function getValueControlType() {
  15      return self::CONTROL_TYPE_NONE;
  16    }
  17  
  18  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1