Skip to content

Commit

Permalink
insert missing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
melange396 committed Aug 15, 2023
1 parent 2e4ed70 commit 70614ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/endpoints/covidcast_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def cache_entry_gen():
entry_source = entry.get("data_source")
if entry_source in sources_protected_by_roles:
role = sources_protected_by_roles[entry_source]
if not (user and user.has_role()):
if not (user and user.has_role(role)):
# if this is a protected source
# and the user doesnt have the allowed role
# (or if we have no user)
Expand Down

0 comments on commit 70614ea

Please sign in to comment.