Skip to content
Snippets Groups Projects
Commit 8e56a6c5 authored by Jeremy M Fee's avatar Jeremy M Fee
Browse files

login: use kwarg for 403 status_code

parent 74cf9602
No related branches found
No related tags found
1 merge request!180Login cache control
......@@ -134,9 +134,9 @@ def require_user(
f" not member of any allowed group ({allowed_groups})"
)
raise HTTPException(
403,
detail="Forbidden",
headers={"Cache-Control": "no-cache"},
status_code=403,
)
return user
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment