Add contest organizer form param
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user