Add contest param for offline form participation
This commit is contained in:
@@ -101,7 +101,7 @@ class ContestsController < ApplicationController
|
||||
|
||||
def offline_new
|
||||
@contest = Contest.find_by(slug: params[:id])
|
||||
unless @contest && @contest.public
|
||||
unless @contest && @contest.offline_form
|
||||
skip_authorization
|
||||
not_found and return
|
||||
end
|
||||
@@ -127,7 +127,7 @@ class ContestsController < ApplicationController
|
||||
end
|
||||
|
||||
def contest_params
|
||||
params.expect(contest: [ :lang, :name, :public, :team, :allow_registration ])
|
||||
params.expect(contest: [ :lang, :name, :offline_form, :public, :team, :allow_registration ])
|
||||
end
|
||||
|
||||
def filter_contestants_per_category
|
||||
|
||||
Reference in New Issue
Block a user