The current user’s team in the current league. A guard for team-scoped
pages: absence rejects with Unauthorized. Onboarding a user who has no
team is the bootstrap middleware’s job — it redirects to /teams/new
before a team-scoped handler runs.
The signed-in user’s team in the resolved league, read from the request
extension cached by the leagues::resolve middleware. None when signed
out, teamless in the league, or when the middleware did not run.
The current user’s team, when it is the team named by the route’s {id}.
Any other id — including a viewer with no team in the resolved league,
such as the site admin visiting another league — is NotFound.
Resolve where user may create a team, and the invite consumed by doing
so (None invite for the site admin’s commissioner bootstrap). The single
source of truth for team-creation authorization, shared by the bootstrap
guard and the TeamCreator extractor.