Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Rulian's avatar

Deselect spark team

How do I (or is it possible) to allow a user to opearate NOT in a context of a team in my spark app? I would like a user to see items that only apply to a team if the user is under a team, but to see items from all teams they belong to if not under a specific team's context.

0 likes
1 reply
Rulian's avatar

Looks like once you create a team, Spark autoselects one if you are not in the context of one. Current team is tracked by current_team_id in the user model, currentTeam() method selects the first team if none is selected and sets that value in the DB. Therefore what I would like is not possible in spark without modifying core functionality I do not want to touch.

Please or to participate in this conversation.