瀏覽代碼

Merge pull request #16424 from CERIT-SC/audit-fix

fix: Audit does not log user information
Tim Jaeryang Baek 2 月之前
父節點
當前提交
25cc8049c8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/open_webui/utils/audit.py

+ 1 - 1
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: