mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
roles_on(team, caller, orgs) in management/teams/authz.py replaces TeamAccess.allows, strongest_role, TEAM_OR_ORG_ADMIN and TEAM_ADMIN_ONLY. It returns the union of the admin roles the caller holds on the team, so a route denies on an empty set and /team/update restricts only a caller whose sole role is team admin. The org-admin lookup moves onto OrganizationMembershipRepository.is_org_admin, which reads the membership row directly, and management/users/service.py goes away. The single-team gates that only read the roster now ask roles_on too, so an org admin can delete and reset spend on keys in their org's teams, add, update and delete team models, check auto-router availability and create projects when the projects permission is on. The matrix flips exactly those seven org_admin cells from 403 to 200. |
||
|---|---|---|
| .. | ||
| cloudformation_stack | ||
| dist | ||
| enterprise_hooks | ||
| enterprise_ui | ||
| litellm_enterprise | ||
| __init__.py | ||
| LICENSE.md | ||
| pyproject.toml | ||
| README.md | ||
LiteLLM Enterprise
Code in this folder is licensed under a commercial license. Please review the LICENSE file within the /enterprise folder
These features are covered under the LiteLLM Enterprise contract
👉 Using in an Enterprise / Need specific features ? Meet with us here
See all Enterprise Features here 👉 Docs