Skip to content

bug: let organizers add more than one team to a tournament - #413

Merged
lukepolo merged 3 commits into
mainfrom
bug/tournament-organizer-multiple-teams
Sep 18, 2026
Merged

lukepolo merged 3 commits into
mainfrom
bug/tournament-organizer-multiple-teams

Conversation

@lukepolo

@lukepolo lukepolo commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Replaces the UNIQUE (owner_steam_id, tournament_id) constraint on tournament_teams with a check in tbi_tournament_team. Regular users are still limited to one team per tournament, but tournament organizers and above can add as many teams as they need. can_join_tournament now follows the same rule, so the join button no longer shows for a team that would be refused.

@lukepolo
lukepolo merged commit fee6a69 into main Sep 18, 2026
2 checks passed
@lukepolo
lukepolo deleted the bug/tournament-organizer-multiple-teams branch September 18, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant