From 75f1ba03dfecfbbd16bbe2fc4f05cfe1e4874ea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=20Mar=C3=ADa=20Mart=C3=ADnez=20G=C3=B3mez?= Date: Tue, 5 Mar 2019 17:11:42 +0100 Subject: [PATCH] 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. --- app/models/ability.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/models/ability.rb b/app/models/ability.rb index 85fe9cf8..12a3555e 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -57,10 +57,6 @@ class Ability conference.registration_open? && registration.new_record? && !conference.registration_limit_exceeded? end - can :show, Event do |event| - event.new_record? - end - can [:new, :create], Event do |event| event.program.cfp_open? && event.new_record? end