From 7bb14503d5c666ff8dae6ff59808650be7fb2335 Mon Sep 17 00:00:00 2001 From: Adrian Hirt Date: Thu, 7 Dec 2023 21:38:53 +0100 Subject: [PATCH] Fix a previously introduced bug --- app/operations/tournament/team/create_for_tournament.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/operations/tournament/team/create_for_tournament.rb b/app/operations/tournament/team/create_for_tournament.rb index 65cbdc4b..982a0ca1 100644 --- a/app/operations/tournament/team/create_for_tournament.rb +++ b/app/operations/tournament/team/create_for_tournament.rb @@ -22,7 +22,7 @@ class CreateForTournament < RailsOps::Operation::Model::Create # If the tournament is already full and a singleplayer tournament, # throw an error - fail Operations::Exceptions::OpFailed, _('Tournament|The tournament is full') if tournament.singleplayer? && model.tournament.teams_full? + fail Operations::Exceptions::OpFailed, _('Tournament|The tournament is full') if tournament.singleplayer? && tournament.teams_full? # If the tournament is linked to a lan_party, the current_user needs to have a ticket # in "checked_in" status to create a team.