Only allow to see confirmed events without log in

Those are the only event a no logged in user should see. There should be
no difference between having enabled ichain or not for this.
This commit is contained in:
Ana María Martínez Gómez 2019-03-05 17:11:42 +01:00
parent f86cde2bbc
commit 75f1ba03df
No known key found for this signature in database
GPG key ID: EACB9B4BC80C0347

View file

@ -57,10 +57,6 @@ class Ability
conference.registration_open? && registration.new_record? && !conference.registration_limit_exceeded? conference.registration_open? && registration.new_record? && !conference.registration_limit_exceeded?
end end
can :show, Event do |event|
event.new_record?
end
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