Skip to content

Commit

Permalink
permissions: add grant "manage" permission
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova committed Feb 26, 2024
1 parent 51df592 commit 9f6c3a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion site/zenodo_rdm/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ class ZenodoRDMRecordPermissionPolicy(RDMRecordPermissionPolicy):
can_manage = [
IfRecordManagementAllowedForCommunity(
then_=RDMRecordPermissionPolicy.can_manage,
else_=[RecordOwners(), SystemProcess()], # hide from community curators
else_=[
RecordOwners(),
AccessGrant("manage"),
SystemProcess(),
], # hide from community curators
)
]
can_curate = can_manage + [AccessGrant("edit"), SecretLinks("edit")]
Expand Down

0 comments on commit 9f6c3a6

Please sign in to comment.