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:
parent
f86cde2bbc
commit
75f1ba03df
1 changed files with 0 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue