Page MenuHomePhabricator

Allow logged-out users to accept invites on nonpublic installs
ClosedPublic

Authored by epriestley on Feb 13 2015, 4:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 8:22 PM
Unknown Object (File)
Fri, Dec 13, 3:15 AM
Unknown Object (File)
Tue, Dec 10, 6:25 PM
Unknown Object (File)
Thu, Dec 5, 3:19 PM
Unknown Object (File)
Nov 25 2024, 10:08 PM
Unknown Object (File)
Nov 22 2024, 12:17 PM
Unknown Object (File)
Nov 18 2024, 10:58 PM
Unknown Object (File)
Nov 18 2024, 2:38 PM
Subscribers

Details

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.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Allow logged-out users to accept invites on nonpublic installs.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: btrahan, chad.
btrahan edited edge metadata.
btrahan added inline comments.
src/applications/auth/query/PhabricatorAuthInviteQuery.php
110–114

When you visit say https://secure.phabricator.com/applications/edit/PhabricatorAuthApplication/ there's a nice note about how everyone should be able to use it, blah blah...

Anyway this magic can be combined? Just asking in case there's already some other fancy flag set.

This revision is now accepted and ready to land.Feb 13 2015, 5:51 PM

The Applications setting means "most open policy", so it's either "all users" or "public" depending on the public setting. It's desirable for "required" applications to adhere to "most open policy", so you can't go browse Files on a non-public install or whatever. We could introduce some other flag, but I don't think we can merge them, and I think it would end up being more complicated in the long run.

I believe this isn't the only query to use null to opt out of application checks, although I don't recall where else it might be used offhand. We could possibly review/formalize this at some point, but it doesn't feel too uncomfortable to me.

(The text could be more clear to us if it said "most open policy", but I suspect "all users" is more clear to most users?)

This revision was automatically updated to reflect the committed changes.