Changeset View
Changeset View
Standalone View
Standalone View
src/view/form/control/AphrontFormPolicyControl.php
Show First 20 Lines • Show All 329 Lines • ▼ Show 20 Lines | if ($this->capability != PhabricatorPolicyCapability::CAN_VIEW) { | ||||
return null; | return null; | ||||
} | } | ||||
if (!($this->object instanceof PhabricatorSpacesInterface)) { | if (!($this->object instanceof PhabricatorSpacesInterface)) { | ||||
return null; | return null; | ||||
} | } | ||||
$viewer = $this->getUser(); | $viewer = $this->getUser(); | ||||
if (!PhabricatorSpacesNamespaceQuery::getViewerSpacesExist($viewer)) { | if (!PhabricatorSpacesNamespaceQuery::getViewerActiveSpacesExist($viewer)) { | ||||
tycho.tatitscheff: This is what T9425/Q135 was about !
Masking Spaces `Select ` if there is not 2 or more active… | |||||
return null; | return null; | ||||
} | } | ||||
$space_phid = $this->getSpacePHID(); | $space_phid = $this->getSpacePHID(); | ||||
if ($space_phid === null) { | if ($space_phid === null) { | ||||
$space_phid = $viewer->getDefaultSpacePHID(); | $space_phid = $viewer->getDefaultSpacePHID(); | ||||
} | } | ||||
Show All 14 Lines |
This is what T9425/Q135 was about !
Masking Spaces Select if there is not 2 or more active Space.