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 5803752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/zenodo_rdm/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ 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 5803752

Please sign in to comment.