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:
parent
e8a213512a
commit
7c6320d211
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue