diff --git a/site/zenodo_rdm/permissions.py b/site/zenodo_rdm/permissions.py index 20e4c0e1..d86713be 100644 --- a/site/zenodo_rdm/permissions.py +++ b/site/zenodo_rdm/permissions.py @@ -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"])]