-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication and projects #60
Conversation
fc336c8
to
c10adb6
Compare
@jjnesbitt I discovered that the OpenLayers implementation of tile loadiing will not work with this branch due to a lack of authentication. I spent a while trying to add authentication to those requests, but I didn't want to expend too much effort getting it to work, since you'll be writing a MapLibre implementation. Let's hold off on this branch until after switching to MapLibre. I'll base my branch on yours and add authentication to that implementation. |
55076e1
to
5f224d3
Compare
806bb29
to
f543ca5
Compare
f543ca5
to
43b45ba
Compare
It now accepts a model queryset, and project queryset, and returns the queryset filtered to those that are contained within the project queryset. The user permission logic has been removed from that function.
- Explicitly define allowed values - Use a transaction, to ensure no inconsistent data - Overwrite permissions, by deleting all existing first
For some reason, initially setting the map center and zoom would set the latitude to 0, only the first time.
df3c24f
to
45f850f
Compare
fdedb21
to
995111d
Compare
…n relevant ViewSets
995111d
to
305f0b2
Compare
a9639fc
to
e157327
Compare
Resolves #52. Resolves #53.
This PR adds users and authentication to UVDAT. With this change, we can also change the structure with which we group Datasets. Instead of Contexts, we now have Projects, which have all the functionality of Contexts plus user access control. A user can belong in one of three categories on a given Project: 1) followers have read-only permissions, 2) collaborators have read-write permissions, and 3) the owner has read, write, and delete permissions. Superusers have read, write, and delete permissions on everything.
UI changes to provide an interface for Project configuration are in #66.