Skip to content

Commit 70614ea

Browse files
committed
insert missing variable
1 parent 2e4ed70 commit 70614ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/endpoints/covidcast_meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def cache_entry_gen():
8383
entry_source = entry.get("data_source")
8484
if entry_source in sources_protected_by_roles:
8585
role = sources_protected_by_roles[entry_source]
86-
if not (user and user.has_role()):
86+
if not (user and user.has_role(role)):
8787
# if this is a protected source
8888
# and the user doesnt have the allowed role
8989
# (or if we have no user)

0 commit comments

Comments
 (0)