events: fix ak_create_event using wrong request for event creation (#5731)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L 2023-05-24 00:51:16 +02:00 committed by Jens Langhammer
parent 9a996e7176
commit 47d5fc26cc
No known key found for this signature in database

View file

@ -154,7 +154,7 @@ class BaseEvaluator:
if "request" in context and isinstance(context["request"], PolicyRequest):
policy_request: PolicyRequest = context["request"]
if policy_request.http_request:
event.from_http(policy_request)
event.from_http(policy_request.http_request)
return
event.save()