mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10: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:
parent
39206fcbc6
commit
ab748e522a
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ final class PhabricatorPolicyEditEngineExtension
|
||||||
->setValue($object->getPolicy($capability));
|
->setValue($object->getPolicy($capability));
|
||||||
$fields[] = $policy_field;
|
$fields[] = $policy_field;
|
||||||
|
|
||||||
if (!($object instanceof PhabricatorSpacesInterface)) {
|
if ($object instanceof PhabricatorSpacesInterface) {
|
||||||
if ($capability == PhabricatorPolicyCapability::CAN_VIEW) {
|
if ($capability == PhabricatorPolicyCapability::CAN_VIEW) {
|
||||||
$type_space = PhabricatorTransactions::TYPE_SPACE;
|
$type_space = PhabricatorTransactions::TYPE_SPACE;
|
||||||
if (isset($types[$type_space])) {
|
if (isset($types[$type_space])) {
|
||||||
|
|
Loading…
Reference in a new issue