themeetinghouse / web

New Meeting House Website
https://beta.themeetinghouse.com
11 stars 5 forks source link

Location specific admin management #1165

Closed lucastbelem closed 1 year ago

lucastbelem commented 1 year ago

We'd like to give people access to their specific locations. Please create the following permission groups:

Having any of these permissions should give you limited access to the following permissions:

But they should only be given access to each of the items above that pertain to their own location. I.e. if given the "Oakville" permission, I should be able to access "People" but I could only click to view and edit data for those with the "OAKV" or "Oakville" location tag. Same applies to "Announcements", "Locations", and "Home Churches".

GeorgeBellTMH commented 1 year ago

These permission groups should be already auto-set when you pick a location in the app...there is no way to pick a location in the web...but there should be....

GeorgeBellTMH commented 1 year ago

If we want to have admin groups for locations then we can create groups, but they should be in the form of: Admin-[location]

GeorgeBellTMH commented 1 year ago

@itbel you can look at the amplify post login lambda hook and figure out what is happening, but we add the groups dynamically...if we need to update the logic that is fine, or if we need to rename groups we can do that too but need to make sure it happens everywhere (including json files for app, which can include permission logic)