ion icon indicating copy to clipboard operation
ion copied to clipboard

User/group permissions

Open jwoglom opened this issue 8 years ago • 3 comments

Django-level permissions don't seem to work.

jwoglom avatar Jun 08 '16 17:06 jwoglom

is this still an issue?

ovkulkarni avatar Jun 02 '17 23:06 ovkulkarni

@jwoglom do you have an example of where this doesn't work?

ovkulkarni avatar Sep 18 '18 00:09 ovkulkarni

@ovkulkarni This definitely had to do with django permissions https://docs.djangoproject.com/en/2.1/topics/auth/default/#permissions-and-authorization

Judging by the time I opened this issue and from what I can remember, I think the original reason for opening this issue related to parking admins, who we might've given access to the Django admin interface in order to view parking info. I recall not being able to give a staff user specific permissions to only the parking parts of the interface, or something of that nature, because we weren't respecting the django permission objects. Might have also had to do with needing to give them both django staff privileges on their user (so they could view the parking interface) AND admin_parking which we had to create but we couldn't just give them explicit CRUD permissions on the Parking model through permission objects, they had to also be in admin_[name of module] and our code only checked the group membership in admin_*.

jwoglom avatar Sep 24 '18 15:09 jwoglom