mirror of
https://github.com/open-webui/open-webui.git
synced 2026-04-27 02:58:33 -05:00
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)
```
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user