File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4141
4242async def get_user_and_team (
4343 user : User = Depends (current_active_user ),
44- x_team : str | None = Header (None , alias = "X-Team" ),
44+ x_team : str | None = Header (None , alias = "X-Team-Id " ),
4545 session : AsyncSession = Depends (get_async_session ),
4646):
4747 """
4848 Dependency to validate user authentication and team membership.
49- Extracts X-Team header and verifies user belongs to that team.
49+ Extracts X-Team-Id header and verifies user belongs to that team.
5050 """
5151 if not x_team :
52- raise HTTPException (status_code = 400 , detail = "X-Team header missing" )
52+ raise HTTPException (status_code = 400 , detail = "X-Team-Id header missing" )
5353
5454 # Verify user is associated with the provided team id
5555 stmt = select (UserTeam ).where (
You can’t perform that action at this time.
0 commit comments