Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Update litellm/proxy/management_endpoints/internal_user_endpoints.py

Alejandro Tapia2e362327b630
diff --git a/litellm/proxy/management_endpoints/internal_user_endpoints.py b/litellm/proxy/management_endpoints/internal_user_endpoints.py
index f5488ce865d..d88d2810193 100644
--- a/litellm/proxy/management_endpoints/internal_user_endpoints.py
+++ b/litellm/proxy/management_endpoints/internal_user_endpoints.py
@@ -1858,7 +1858,7 @@ async def ui_view_users(
try:
# Restrict by caller role: proxy admin sees all; org admin sees only their org(s); others 403
- is_proxy_admin = user_api_key_dict.user_role == LitellmUserRoles.PROXY_ADMIN
+ is_proxy_admin = _user_has_admin_view(user_api_key_dict)
if not is_proxy_admin:
if user_api_key_dict.user_id is None:
raise HTTPException(