Permission changes again

This commit is contained in:
2025-02-18 12:02:00 +00:00
parent 3ca634d370
commit 6dc1fa855b

View File

@@ -768,15 +768,15 @@ class InvenioRDMStarterRecordPermissionPolicy(RDMRecordPermissionPolicy):
# Actions # Actions
# #
# Allow to put a record in edit mode (create a draft from record) # Allow to put a record in edit mode (create a draft from record)
can_edit = [SystemProcess()] can_edit = can_manage + [SystemProcess()]
# Allow deleting/discarding a draft and all associated files # Allow deleting/discarding a draft and all associated files
can_delete_draft = [SystemProcess()] can_delete_draft = can_manage + [SystemProcess()]
# Allow creating a new version of an existing published record. # Allow creating a new version of an existing published record.
can_new_version = [SystemProcess()] can_new_version = can_manage + [SystemProcess()]
# Allow publishing a new record or changes to an existing record. # Allow publishing a new record or changes to an existing record.
can_publish = can_manage + [SystemProcess()] can_publish = can_manage + [SystemProcess()]
# Allow lifting a record or draft. # Allow lifting a record or draft.
can_lift_embargo = [SystemProcess()] can_lift_embargo = can_manage + [SystemProcess()]
# #
# Record communities # Record communities