1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-20 05:42:40 +01:00

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
This commit is contained in:
epriestley 2015-02-13 11:00:41 -08:00
parent 532c440e84
commit 6d5aec8618

View file

@ -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;
}
}