mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix: guard team_object.team_id is None in _check_team_member_model_budget to prevent budget bypass
This commit is contained in:
parent
d9067925f5
commit
f38f5d48b0
1 changed files with 1 additions and 0 deletions
|
|
@ -3354,6 +3354,7 @@ async def _check_team_member_model_budget(
|
|||
"""
|
||||
if (
|
||||
team_object is None
|
||||
or team_object.team_id is None
|
||||
or valid_token is None
|
||||
or valid_token.user_id is None
|
||||
or model is None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue