Skip to content

Commit

Permalink
permissions: relax legacy secret link access
Browse files Browse the repository at this point in the history
  • Loading branch information
zzacharo committed Oct 19, 2023
1 parent 3a02f36 commit 7349721
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 @@ -43,7 +43,7 @@ class LegacySecretLinks(Generator):

def needs(self, record=None, **kwargs):
"""Set of Needs granting permission."""
if record is None:
if not record:
return []
return [LegacySecretLinkNeed(record["id"])]

Expand Down

0 comments on commit 7349721

Please sign in to comment.