(backend) add commentator role

To allow a user to comment a document we added a new role: commentator.
Commentator is higher than reader but lower than editor.
This commit is contained in:
Manuel Raynaud
2025-08-26 17:55:53 +02:00
committed by Anthony LC
parent 10a319881d
commit 0caee61d86
7 changed files with 248 additions and 61 deletions

View File

@@ -33,6 +33,7 @@ class LinkRoleChoices(PriorityTextChoices):
"""Defines the possible roles a link can offer on a document."""
READER = "reader", _("Reader") # Can read
COMMENTATOR = "commentator", _("Commentator") # Can read and comment
EDITOR = "editor", _("Editor") # Can read and edit
@@ -40,6 +41,7 @@ class RoleChoices(PriorityTextChoices):
"""Defines the possible roles a user can have in a resource."""
READER = "reader", _("Reader") # Can read
COMMENTATOR = "commentator", _("Commentator") # Can read and comment
EDITOR = "editor", _("Editor") # Can read and edit
ADMIN = "administrator", _("Administrator") # Can read, edit, delete and share
OWNER = "owner", _("Owner")