Worlds: disable the collab filling now that results are final
CI / scan_ruby (push) Waiting to run
CI / scan_js (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run

This commit is contained in:
sto
2026-09-21 17:07:57 +02:00
parent 60062808bc
commit c0b652b904
2 changed files with 17 additions and 14 deletions
+3
View File
@@ -111,6 +111,9 @@ class WorldsController < ApplicationController
def update
authorize :world_bet
# Disable this action now that worlds are over.
redirect_to "/wjpc_bets/#{@lang}/collab", notice: t("worlds.collab.error") and return
@participant = WorldParticipant.find(params[:participant_id])
if @participant.update(world_participant_params)
participants_hash = {}