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

Fix an issue with the Spaces roadblock

If a user has access to exactly one space, the "exist" call is wrong.

Auditors: btrahan
This commit is contained in:
epriestley 2015-07-05 04:35:34 -07:00
parent e8a213512a
commit 7c6320d211

View file

@ -216,7 +216,7 @@ abstract class PhabricatorController extends AphrontController {
// later on.
$spaces = PhabricatorSpacesNamespaceQuery::getSpacesExist();
if ($spaces) {
$viewer_spaces = PhabricatorSpacesNamespaceQuery::getViewerSpacesExist(
$viewer_spaces = PhabricatorSpacesNamespaceQuery::getViewerSpaces(
$user);
if (!$viewer_spaces) {
$controller = new PhabricatorSpacesNoAccessController();