Add ability for ichain users to login before registering for conference
This commit is contained in:
parent
95f81b39f3
commit
59076c9dd7
1 changed files with 6 additions and 0 deletions
|
|
@ -62,6 +62,12 @@ class Ability
|
||||||
can [:new, :create], Event do |event|
|
can [:new, :create], Event do |event|
|
||||||
event.program.cfp_open? && event.new_record?
|
event.program.cfp_open? && event.new_record?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
else
|
||||||
|
can [:new, :create], Registration do |registration|
|
||||||
|
conference = registration.conference
|
||||||
|
conference.registration_open? && registration.new_record? && !conference.registration_limit_exceeded?
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue