This commit is contained in:
Chaitanya Yadav 2017-07-12 14:11:54 +00:00 committed by GitHub
commit f1d2bf710f
4 changed files with 32 additions and 16 deletions

View file

@ -34,10 +34,6 @@ class Ability
can [:show], Conference do |conference|
conference.splashpage && conference.splashpage.public == true
end
# Can view the schedule
can [:schedule, :events], Conference do |conference|
conference.program.cfp && conference.program.schedule_public
end
can :show, Event do |event|
event.state == 'confirmed'