elixir-europe-training / Training-Metrics-Database

TMD - a database for aggregation of training metrics in ELIXIR
https://tmd.elixir-europe.org
MIT License
6 stars 1 forks source link

Set correct permissions for node users #67

Closed ninanorgren closed 1 week ago

ninanorgren commented 1 week ago

We will use the Django admin panel to manage Questions, QuestionSets, etc. This requires the node users to have access to this panel, and the correct permissions to handle them. Below is an attempt at looking at these permissions (node user) on a table level:

View:

Add:

Edit:

Delete:

In addition/from another perspective (node user):

The delete permission might need to be discussed more. Superusers can of course do everything. However, it should not be allowed for the node user to update/change the user of any questions, sets, etc. But it should be allowed for the superuser.

These issues are related to issues #21 and #50

ninanorgren commented 1 week ago

Current status after last commit: There is now a script that can be run manually to assign all node users to a group, where permissions can be set. Right now, users can only see their own questions, sets, etc, and they are not allowed to change the user for a question etc, only the superuser can do that.

ninanorgren commented 1 week ago

Now node users can see but not edit sets and supersets.