Changeset View
Changeset View
Standalone View
Standalone View
src/applications/policy/rule/PhabricatorUsersPolicyRule.php
- This file was moved from src/applications/policy/rule/PhabricatorPolicyRuleUsers.php.
<?php | <?php | ||||
final class PhabricatorPolicyRuleUsers | final class PhabricatorUsersPolicyRule extends PhabricatorPolicyRule { | ||||
extends PhabricatorPolicyRule { | |||||
public function getRuleDescription() { | public function getRuleDescription() { | ||||
return pht('users'); | return pht('users'); | ||||
} | } | ||||
public function applyRule(PhabricatorUser $viewer, $value) { | public function applyRule(PhabricatorUser $viewer, $value) { | ||||
foreach ($value as $phid) { | foreach ($value as $phid) { | ||||
if ($phid == $viewer->getPHID()) { | if ($phid == $viewer->getPHID()) { | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |