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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Fix admin viewer unable to see all organizations
Ryan Crabbe8d539db108dc
diff --git a/litellm/proxy/management_endpoints/organization_endpoints.py b/litellm/proxy/management_endpoints/organization_endpoints.pyindex 1c19c4ef313..103b2efcdde 100644--- a/litellm/proxy/management_endpoints/organization_endpoints.py+++ b/litellm/proxy/management_endpoints/organization_endpoints.py@@ -649,8 +649,8 @@ async def list_organization("mode": "insensitive", # Case-insensitive search}- # if proxy admin - get all orgs (with optional filters)- if user_api_key_dict.user_role == LitellmUserRoles.PROXY_ADMIN:+ # if proxy admin or admin viewer - get all orgs (with optional filters)+ if _user_has_admin_view(user_api_key_dict):response = await prisma_client.db.litellm_organizationtable.find_many(where=where_conditions if where_conditions else None,include={"litellm_budget_table": True, "members": True, "teams": True},