Differential D21751 Diff 51860 src/applications/policy/editor/PhabricatorPolicyEditEngineExtension.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/policy/editor/PhabricatorPolicyEditEngineExtension.php
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | $map = array( | ||||
'key' => 'policy.join', | 'key' => 'policy.join', | ||||
'aliases' => array('join'), | 'aliases' => array('join'), | ||||
'capability' => PhabricatorPolicyCapability::CAN_JOIN, | 'capability' => PhabricatorPolicyCapability::CAN_JOIN, | ||||
'label' => pht('Join Policy'), | 'label' => pht('Join Policy'), | ||||
'description' => pht('Controls who can join the object.'), | 'description' => pht('Controls who can join the object.'), | ||||
'description.conduit' => pht('Change the join policy of the object.'), | 'description.conduit' => pht('Change the join policy of the object.'), | ||||
'edit' => 'join', | 'edit' => 'join', | ||||
), | ), | ||||
PhabricatorTransactions::TYPE_INTERACT_POLICY => array( | |||||
'key' => 'policy.interact', | |||||
'aliases' => array('interact'), | |||||
'capability' => PhabricatorPolicyCapability::CAN_INTERACT, | |||||
'label' => pht('Interact Policy'), | |||||
'description' => pht('Controls who can interact with the object.'), | |||||
'description.conduit' | |||||
=> pht('Change the interaction policy of the object.'), | |||||
'edit' => 'interact', | |||||
), | |||||
); | ); | ||||
if ($object instanceof PhabricatorPolicyCodexInterface) { | if ($object instanceof PhabricatorPolicyCodexInterface) { | ||||
$codex = PhabricatorPolicyCodex::newFromObject( | $codex = PhabricatorPolicyCodex::newFromObject( | ||||
$object, | $object, | ||||
$viewer); | $viewer); | ||||
} else { | } else { | ||||
$codex = null; | $codex = null; | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |