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 authored and zzacharo committed Apr 4, 2024
1 parent 11df692 commit 06c22d3
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 06c22d3

Please sign in to comment.