Bug #6150
openUsers need locations added even if "All users" is ticked
Description
I am using locations, but not organizations. I have several locations defined. I have "All users" ticked on the Users sub-tab within each location.
I am using authentication with LDAP backends. For my LDAP sources, I have "Automatically create accounts in Foreman" ticked. My accounts are filtered with an LDAP filter, and automatic account creation works fine. My Anonymous role (which applies to these users) has the "view_locations" permission granted.
However, when a user logs in, they are not able to view any locations under the Administer -> Locations menu. And the "Any Context" menu in the top left does not list any locations in its dropdown.
Using an admin user (or a user who can edit other users), I can add locations manually to a specific user. If this user re-logs in, then they are able to view locations as expected.
It seems like the "All users" being specified on the Users sub-tab of the Location is not taking effect. Or I'm not understanding its intended purpose.
Dominic and I discussed this on IRC some. I can provide any information that might help. This is a new Foreman setup that we're just getting underway.