mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix: add /user/bulk_update to management_routes so proxy admins can access it
/user/bulk_update was missing from the management_routes list in _types.py, causing it to fall through to a 403 in non_proxy_admin_allowed_routes_check even for proxy admin users. Also added it to the PROXY_ADMIN_VIEW_ONLY blocked write operations list in route_checks.py to prevent view-only admins from using it.
This commit is contained in:
parent
8f425ec3ff
commit
a5ff668f5e
2 changed files with 2 additions and 0 deletions
|
|
@ -525,6 +525,7 @@ class LiteLLMRoutes(enum.Enum):
|
|||
# user
|
||||
"/user/new",
|
||||
"/user/update",
|
||||
"/user/bulk_update",
|
||||
"/user/delete",
|
||||
"/user/info",
|
||||
"/user/list",
|
||||
|
|
|
|||
|
|
@ -629,6 +629,7 @@ class RouteChecks:
|
|||
in [
|
||||
"/user/new",
|
||||
"/user/delete",
|
||||
"/user/bulk_update",
|
||||
"/team/new",
|
||||
"/team/update",
|
||||
"/team/delete",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue