mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-20 00:11:50 +00:00
fix(ui): keep every team selectable for org admins in the Team ID selector
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
59693d5019
commit
500790a93a
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ export const teamsUserCanAssign = (
|
|||
userRole: string | null,
|
||||
userID: string | null,
|
||||
): Team[] | null => {
|
||||
if (teams == null || all_admin_roles.includes(userRole ?? "")) {
|
||||
if (teams == null || all_admin_roles.includes(userRole ?? "") || isOrgAdminSessionRole(userRole)) {
|
||||
return teams;
|
||||
}
|
||||
return teams.filter((team) => isUserTeamAdminForSingleTeam(team.members_with_roles, userID ?? ""));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue