Extend permission system to add field-level permissions #5630
Replies: 6 comments
-
This sounds like a part of the field-level permission system |
Beta Was this translation helpful? Give feedback.
-
Maybe so. That is the request 😄 |
Beta Was this translation helpful? Give feedback.
-
The main API currently checks update permissions for fields. It uses the same mechanism as the the audit log. It doesn't check read permissions for individual fields. It's implemented at https://github.com/specify/specify7/blob/v7.7.5/specifyweb/specify/api.py#L618-L621 |
Beta Was this translation helpful? Give feedback.
-
Requested again by every Swiss institution. |
Beta Was this translation helpful? Give feedback.
-
As a reminder, this is already implemented on the back-end (you can only remove or add field update permission, and that's only applicable if you have update permission or add permission to the table - there is no separate field view, delete or add permission) The only thing remaining is front-end. Mainly:
See specify7/specifyweb/frontend/js_src/lib/components/Security/utils.ts Lines 175 to 189 in 935d304 fieldPolicy
|
Beta Was this translation helpful? Give feedback.
-
From our Open Discussion on Associated Media Management in Specify 7 community meet:
|
Beta Was this translation helpful? Give feedback.
-
Fields that are visible for all users but only users of a specific role/policy should have access. Maybe something like a "restricted fields" permission.
This would be nice to have as some fields should be read-only for most users but editable by administrators.
Requested By: NMC Herbaria
Beta Was this translation helpful? Give feedback.
All reactions