Skip to content

Commit

Permalink
Add return to is_app-admin() in is_gfwpro_admin_for_query.
Browse files Browse the repository at this point in the history
  • Loading branch information
danscales committed Dec 22, 2023
1 parent 90bc813 commit 8e7d235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/authentication/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def is_gfwpro_admin_for_query(dataset: str = Depends(dataset_dependency),
if token == None:
raise HTTPException(status_code=401, detail="Unauthorized query on a restricted dataset")
else:
await is_app_admin(cast(str, token), "gfw-pro",
return await is_app_admin(cast(str, token), "gfw-pro",
error_str="Unauthorized query on a restricted dataset")

return True
Expand Down

0 comments on commit 8e7d235

Please sign in to comment.