1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 12:00:55 +01:00

Fix an issue with the Spaces EditField not reading values properly

Summary: Fixes T9988. This logic got inverted by accident at some point.

Test Plan:
  - Edited a task, shifting spaces.
  - Created a task in default space.
  - Created a task in custom space.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9988

Differential Revision: https://secure.phabricator.com/D14787
This commit is contained in:
epriestley 2015-12-15 06:13:48 -08:00
parent 39206fcbc6
commit ab748e522a

View file

@ -91,7 +91,7 @@ final class PhabricatorPolicyEditEngineExtension
->setValue($object->getPolicy($capability));
$fields[] = $policy_field;
if (!($object instanceof PhabricatorSpacesInterface)) {
if ($object instanceof PhabricatorSpacesInterface) {
if ($capability == PhabricatorPolicyCapability::CAN_VIEW) {
$type_space = PhabricatorTransactions::TYPE_SPACE;
if (isset($types[$type_space])) {