mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00: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:
parent
3f35ba27fc
commit
c4e0051ab2
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue