Skip to content

Commit

Permalink
Fix search for rights of non-existing publication
Browse files Browse the repository at this point in the history
  • Loading branch information
index-git committed May 17, 2021
1 parent 636a472 commit 91d8b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layman/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def get_publication_info(workspace, publ_type, publ_name, context=None):
for pi in partial_infos.values():
result.update(pi)

if 'actor_name' in context:
if 'actor_name' in context and result:
actor = context['actor_name']
read_access_users = result.get('access_rights').get('read')
if not authz.is_user_in_access_rule(actor, read_access_users):
Expand Down

0 comments on commit 91d8b1c

Please sign in to comment.