From 6d5aec86181c28bcd29cfa7e70a11a5b77cb69ac Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 13 Feb 2015 11:00:41 -0800 Subject: [PATCH] Allow logged-out users to accept invites on nonpublic installs Summary: If your install isn't public, users can't see the Auth or People applications while logged out, so we can't load their invites. Allow this query to go through no matter who the viewing user is. Test Plan: Invite flow on `admin.phacility.com` now works better. Reviewers: chad, btrahan Reviewed By: btrahan Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D11765 --- src/applications/auth/query/PhabricatorAuthInviteQuery.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/applications/auth/query/PhabricatorAuthInviteQuery.php b/src/applications/auth/query/PhabricatorAuthInviteQuery.php index f4d86a4885..1ae617db65 100644 --- a/src/applications/auth/query/PhabricatorAuthInviteQuery.php +++ b/src/applications/auth/query/PhabricatorAuthInviteQuery.php @@ -108,7 +108,9 @@ final class PhabricatorAuthInviteQuery } public function getQueryApplicationClass() { - return 'PhabricatorAuthApplication'; + // NOTE: This query is issued by logged-out users, who often will not be + // able to see applications. They still need to be able to see invites. + return null; } }