Allow users who are not signed-in to view vertical_schedule endpoint

This commit is contained in:
CactusPuppy 2021-04-28 21:44:00 -07:00
parent e534c6eee3
commit 818cb24dd3
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82

View file

@ -31,7 +31,7 @@ class Ability
event.state == 'confirmed'
end
can [:show, :events, :happening_now, :app], Schedule do |schedule|
can [:show, :events, :happening_now, :app, :vertical_schedule], Schedule do |schedule|
schedule.program.schedule_public
end