Revert changes in AphrontFormPolicyControl.php
After recent Brecht's commit they're not needed. Euh, didn't notice policies could be edited in configuration :(
This commit is contained in:
@@ -118,14 +118,11 @@ final class AphrontFormPolicyControl extends AphrontFormControl {
|
|||||||
throw new Exception(pht("Call setCapability() before rendering!"));
|
throw new Exception(pht("Call setCapability() before rendering!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->getValue()) {
|
|
||||||
$policy = $this->object->getPolicy($this->capability);
|
$policy = $this->object->getPolicy($this->capability);
|
||||||
if (!$policy) {
|
if (!$policy) {
|
||||||
// TODO: Make this configurable.
|
// TODO: Make this configurable.
|
||||||
$policy = PhabricatorPolicies::POLICY_USER;
|
$policy = PhabricatorPolicies::POLICY_USER;
|
||||||
}
|
}
|
||||||
$this->setValue($policy);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$control_id = celerity_generate_unique_node_id();
|
$control_id = celerity_generate_unique_node_id();
|
||||||
|
|||||||
Reference in New Issue
Block a user