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
refactor(ui): drop unused rolesAllowedToSeeUsage, viewOnlyRoles and isViewOnlyRole exports
mateobec1abd32ec0
diff --git a/ui/litellm-dashboard/src/utils/roles.ts b/ui/litellm-dashboard/src/utils/roles.tsindex 62a5f02cc39..6033bb9f98d 100644--- a/ui/litellm-dashboard/src/utils/roles.ts+++ b/ui/litellm-dashboard/src/utils/roles.ts@@ -13,15 +13,12 @@ export const v2_admin_role_names = ["proxy_admin", "proxy_admin_viewer", "org_adexport const all_admin_roles = [...old_admin_roles, ...v2_admin_role_names];export const internalUserRoles = ["Internal User", "Internal Viewer", "internal_user", "internal_user_viewer"];-export const rolesAllowedToSeeUsage = ["Admin", "Admin Viewer", "Internal User", "Internal Viewer"];export const rolesWithWriteAccess = ["Internal User", "Admin", "proxy_admin"];// Admin-tier read parity: Admin Viewer sees Models + Endpoints, Agents, and// other pages whose primary purpose is configuration/management read-only.// Per the Admin Viewer principle: read parity with Proxy Admin, no writes,// no cost-incurring actions (Playground stays gated by `rolesWithWriteAccess`).export const rolesAllowedToViewWriteScopedPages = [...rolesWithWriteAccess, "Admin Viewer", "proxy_admin_viewer"];-export const viewOnlyRoles = ["Admin Viewer", "Internal Viewer"];-export const isViewOnlyRole = (role: string): boolean => viewOnlyRoles.includes(role);// Helper function to check if a role is in all_admin_rolesexport const isAdminRole = (role: string): boolean => {