Open maneesha opened 6 years ago
@maneesha would that be view access to all pages or just some pages?
@pbanaszkiewicz I was thinking this would be for all the user groups we currently have - we would have the option to set permissions to be read only or write.
Django supports group permissions, and for the most part we used them to control if user for example is able to create, change or remove some model's objects. However, "view" permissions are only just now coming to Django 2.1 (to be released soon).
I'd propose we wait until Django 2.1 is released, then adapt it.
I thought about this issue and decided to move it to the v2.5 release. This will require deep testing and thinking, and possibly some design decision from The Carpentries staff. It's too late in v2.4 release to implement this feature.
Thanks @pbanaszkiewicz Right now it looks like we can set view permissions to individual sections. I haven't actually done this so I don't know how it works -- and the hope here was to do this in groups, rather than clicking through each "view" option one by one.
See for example - it looks like I could set someone up to be able to add, change, delete or view an object.
Hello @maneesha,
you can assign specific permissions to groups in Django admin. Right now we have these groups:
Apart from these we also have people marked as "superusers", which means they have all the permissions available - even if not assigned.
It would help me a lot if you described now what groups do you want to have and what their initial permissions should be.
On a later stage I have to make AMY functions listen to these new permissions, because for now they mostly use "add/change/remove" permissions.
Thanks @pbanaszkiewicz Right now if we give permissions to a group, that group gets read and write access. When assigning permissions to a group, would it be possible to choose whether they get read only access or read/write access?
We do want to re-think each of our groups - you are right about that. That may be a separate issue. I'll think about that more an open another issue for staff discussion. When I opened this issue I wanted to see if read-only access was generally possible.
@maneesha:
When assigning permissions to a group, would it be possible to choose whether they get read only access or read/write access?
Yes. You can mix & match the permissions for groups the same way as you can for individual persons. For example, group "Trainers" may have add&view&change&remove permissions to TrainingRequests objects, and only view access to Membership objects.
It may be necessary to create custom permissions, like "read trainees" or similar - I have yet to dive into the code to decide.
We do want to re-think each of our groups - you are right about that. That may be a separate issue. I'll think about that more an open another issue for staff discussion.
I'll gather functions that we have in AMY and provide you with the list, so that you can decide what permissions you need for each group. I have to do this to determine if there are any custom permissions to create.
This is part of a larger conversation of who should have access to read/write various AMY components. We will return to this in an upcoming work cycle.
I would like to revisit this because we have team members who should be able to view records in AMY but should not be able to edit them (to prevent even accidental changes to data).
We have some users who should have access to view data but should not have access to edit anything.