forked from phoenix/litellm-mirror
fix(proxy_server.py): fix admin allowed routes
This commit is contained in:
parent
595a2a5b1b
commit
a33b9221da
5 changed files with 144 additions and 26 deletions
|
@ -497,7 +497,7 @@ async def user_api_key_auth(
|
|||
litellm_proxy_roles=jwt_handler.litellm_jwtauth,
|
||||
)
|
||||
if is_allowed:
|
||||
return UserAPIKeyAuth()
|
||||
return UserAPIKeyAuth(user_role="proxy_admin")
|
||||
else:
|
||||
allowed_routes = (
|
||||
jwt_handler.litellm_jwtauth.admin_allowed_routes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue