From 7c6320d2112109a2c7ec600be8ffd9285f137eb6 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sun, 5 Jul 2015 04:35:34 -0700 Subject: [PATCH] Fix an issue with the Spaces roadblock If a user has access to exactly one space, the "exist" call is wrong. Auditors: btrahan --- src/applications/base/controller/PhabricatorController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/base/controller/PhabricatorController.php b/src/applications/base/controller/PhabricatorController.php index b884b13557..33c7dfcd53 100644 --- a/src/applications/base/controller/PhabricatorController.php +++ b/src/applications/base/controller/PhabricatorController.php @@ -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(); -- 2.51.2