Differential D20803 Diff 49607 src/applications/policy/controller/PhabricatorPolicyExplainController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/policy/controller/PhabricatorPolicyExplainController.php
Show First 20 Lines • Show All 327 Lines • ▼ Show 20 Lines | $object_section = id(new PHUIPolicySectionView()) | ||||
)) | )) | ||||
->appendParagraph( | ->appendParagraph( | ||||
pht( | pht( | ||||
'In detail, this means that these users can take this action, '. | 'In detail, this means that these users can take this action, '. | ||||
'provided they pass all of the checks described above first:')) | 'provided they pass all of the checks described above first:')) | ||||
->appendList( | ->appendList( | ||||
array( | array( | ||||
PhabricatorPolicy::getPolicyExplanation( | PhabricatorPolicy::getPolicyExplanation( | ||||
$viewer, | $viewer, | ||||
$policy->getPHID()), | $policy->getPHID()), | ||||
)); | )); | ||||
$strength = $this->getStrengthInformation($object, $policy, $capability); | $strength = $this->getStrengthInformation($object, $policy, $capability); | ||||
if ($strength) { | if ($strength) { | ||||
$object_section->appendHint($strength); | $object_section->appendHint($strength); | ||||
} | } | ||||
return $object_section; | return $object_section; | ||||
} | } | ||||
} | } |