From c4e0051ab2a1cd8f4fc3da98dd3eced137da4c4a Mon Sep 17 00:00:00 2001 From: xhejtman Date: Sun, 10 Aug 2025 02:10:00 +0200 Subject: [PATCH] Fix audit get_current_user get_current_user has 4 args not 3 args: ``` get_current_user( request: Request, response: Response, background_tasks: BackgroundTasks, auth_token: HTTPAuthorizationCredentials = Depends(bearer_security) ``` --- backend/open_webui/utils/audit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/utils/audit.py b/backend/open_webui/utils/audit.py index 8193907d27..0cef3c91f8 100644 --- a/backend/open_webui/utils/audit.py +++ b/backend/open_webui/utils/audit.py @@ -195,7 +195,7 @@ class AuditLoggingMiddleware: try: user = get_current_user( - request, None, get_http_authorization_cred(auth_header) + request, None, None, get_http_authorization_cred(auth_header) ) return user except Exception as e: