Allowing registration to be access but not modified after registration is closed

This commit is contained in:
Godwin
2015-09-29 22:31:22 -07:00
parent 06d216421e
commit dfd39d77e0
48 changed files with 113 additions and 194 deletions
+13 -4
View File
@@ -517,16 +517,20 @@ class ConferencesController < ApplicationController
is_post = request.post? || session[:registration_step]
set_conference
if !@this_conference.registration_open
do_404
return
end
#if !@this_conference.registration_open
# do_404
# return
#end
set_conference_registration
@register_template = nil
if logged_in?
unless @this_conference.registration_open || @registration
do_404
return
end
# if the user is logged in start them off on the policy
# page, unless they have already begun registration then
# start them off with questions
@@ -650,6 +654,11 @@ class ConferencesController < ApplicationController
@register_template = :done
end
# don't let the user edit registration if registration is closed
if !@conference.registration_open && @register_template == :questions
@register_template = :done
end
# prepare data for the next view
case @register_template
when :questions