From a81519ce688ec693fd2f2d0d4cb8198ad33395b8 Mon Sep 17 00:00:00 2001 From: CactusPuppy Date: Wed, 28 Apr 2021 21:44:00 -0700 Subject: [PATCH] Allow users who are not signed-in to view vertical_schedule endpoint --- app/models/ability.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/ability.rb b/app/models/ability.rb index ec17e14c..68c83066 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -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