Skip to content

Commit 3f19d31

Browse files
committed
DO NOT MERGE: I don't exactly know why this was necessary
But otherwise, I got random errors that request doesn't have the property request_id. Somebody with more insight should figure out why this happens and how to handle it properly.
1 parent 855cc0b commit 3f19d31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

authentik/rbac/middleware.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ def post_save_handler(
6161
):
6262
if not created:
6363
return
64+
if not hasattr(request, "request_id"):
65+
return
6466
if request.request_id != _CTX_REQUEST.get().request_id:
6567
return
6668
user: User = request.user

0 commit comments

Comments
 (0)