Skip to content

Commit

Permalink
Fix a previously introduced bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian-Hirt committed Dec 7, 2023
1 parent 42d7c46 commit 7bb1450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/operations/tournament/team/create_for_tournament.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7bb1450

Please sign in to comment.