Permission changes again

This commit is contained in:
2025-02-18 12:02:00 +00:00
parent 82f4172409
commit 41638c9d74

View File

@@ -768,15 +768,15 @@ class InvenioRDMStarterRecordPermissionPolicy(RDMRecordPermissionPolicy):
# Actions
#
# 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
can_delete_draft = [SystemProcess()]
can_delete_draft = can_manage + [SystemProcess()]
# 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.
can_publish = can_manage + [SystemProcess()]
# Allow lifting a record or draft.
can_lift_embargo = [SystemProcess()]
can_lift_embargo = can_manage + [SystemProcess()]
#
# Record communities