Skip to content

Commit 4a17956

Browse files
committed
Update router.py
1 parent 1e1f2b8 commit 4a17956

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/backend/v3/api/router.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ async def process_request(
274274
team_id = None
275275
if user_current_team:
276276
team_id = user_current_team.team_id
277+
team = await memory_store.get_team_by_id(team_id=team_id)
278+
if not team:
279+
raise HTTPException(
280+
status_code=404,
281+
detail=f"Team configuration '{team_id}' not found or access denied",
282+
)
277283
plan = Plan(
278284
id=plan_id,
279285
plan_id=plan_id,

0 commit comments

Comments
 (0)