We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e4ed70 commit 70614eaCopy full SHA for 70614ea
src/server/endpoints/covidcast_meta.py
@@ -83,7 +83,7 @@ def cache_entry_gen():
83
entry_source = entry.get("data_source")
84
if entry_source in sources_protected_by_roles:
85
role = sources_protected_by_roles[entry_source]
86
- if not (user and user.has_role()):
+ if not (user and user.has_role(role)):
87
# if this is a protected source
88
# and the user doesnt have the allowed role
89
# (or if we have no user)
0 commit comments