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,13 +118,10 @@ final class AphrontFormPolicyControl extends AphrontFormControl {
|
||||
throw new Exception(pht("Call setCapability() before rendering!"));
|
||||
}
|
||||
|
||||
if (!$this->getValue()) {
|
||||
$policy = $this->object->getPolicy($this->capability);
|
||||
if (!$policy) {
|
||||
// TODO: Make this configurable.
|
||||
$policy = PhabricatorPolicies::POLICY_USER;
|
||||
}
|
||||
$this->setValue($policy);
|
||||
$policy = $this->object->getPolicy($this->capability);
|
||||
if (!$policy) {
|
||||
// TODO: Make this configurable.
|
||||
$policy = PhabricatorPolicies::POLICY_USER;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user