fix: guard team_object.team_id is None in _check_team_member_model_budget to prevent budget bypass

This commit is contained in:
Ishaan Jaffer 2026-04-24 20:26:33 -07:00
parent d9067925f5
commit f38f5d48b0
No known key found for this signature in database

View file

@ -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