Skip to content

Commit

Permalink
also check authenticated groups
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Dec 21, 2024
1 parent 3f111ba commit d00e50b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion emmet-api/emmet/api/core/global_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ def process_header(self, response: Response, request: Request):
def configure_query_on_request(
self, request: Request, query_operator: LicenseQuery
) -> STORE_PARAMS:
groups = request.headers.get("x-consumer-groups", "")
groups = request.headers.get(
"x-consumer-groups", request.headers.get("x-authenticated-groups", "")
)
if not groups:
return query_operator.query(license="BY-C")

Expand Down

0 comments on commit d00e50b

Please sign in to comment.