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:
2013-11-06 16:05:54 +06:00
parent 39f7364f25
commit 753917c10c

View File

@@ -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;
}