mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix: team viewer should not see create team (#11127)
This commit is contained in:
parent
f2cb89d610
commit
119a73a3fc
1 changed files with 4 additions and 2 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue