Add contest organizer form param
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
sto
2026-04-24 11:44:51 +02:00
parent 1650b22407
commit fa8880abfc
9 changed files with 29 additions and 5 deletions

View File

@@ -164,7 +164,7 @@ class ContestantsController < ApplicationController
skip_authorization
@contestant = Contestant.find(params[:contestant_id])
if !@contestant || !@contestant.contest.code.present?
if !@contestant || !@contestant.contest.code.present? || !@contestant.contest.organizer_form
not_found and return
end
@contest = @contestant.contest