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]

refactor(ui): drop redundant comment on canListUsers role list

Devin AIb7596d6fba97
diff --git a/ui/litellm-dashboard/src/utils/roles.ts b/ui/litellm-dashboard/src/utils/roles.ts
index 1cb7e75c19b..066a83992b4 100644
--- a/ui/litellm-dashboard/src/utils/roles.ts
+++ b/ui/litellm-dashboard/src/utils/roles.ts
@@ -28,8 +28,6 @@ export const isAdminRole = (role: string): boolean => {
return all_admin_roles.includes(role);
};
-// /user/list admits proxy admins and org admins; the session role for the latter is the formatted
-// "Org Admin", which all_admin_roles does not carry
const rolesAllowedToListUsers: string[] = [...all_admin_roles, "Org Admin"];
export const canListUsers = (role: string | null): boolean => rolesAllowedToListUsers.includes(role ?? "");