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]

fix: team viewer should not see create team (#11127)

Ishaan Jaff119a73a3fccf
diff --git a/ui/litellm-dashboard/src/components/teams.tsx b/ui/litellm-dashboard/src/components/teams.tsx
index b8897186878..2a7e667ee7c 100644
--- a/ui/litellm-dashboard/src/components/teams.tsx
+++ b/ui/litellm-dashboard/src/components/teams.tsx
@@ -425,13 +425,15 @@ const Teams: React.FC<TeamProps> = ({
<div className="w-full mx-4 h-[75vh]">
<Grid numItems={1} className="gap-2 p-8 w-full mt-2">
<Col numColSpan={1} className="flex flex-col gap-2">
+ {
+ userRole == "Admin" || userRole == "Org Admin"?
<Button
className="w-fit"
onClick={() => setIsTeamModalVisible(true)}
>
+ Create New Team
- </Button>
-
+ </Button> : null
+ }
{selectedTeamId ? (
<TeamInfoView
teamId={selectedTeamId}