diff --git a/app/controllers/admin/schedules_controller.rb b/app/controllers/admin/schedules_controller.rb index 4ed535c2..d3c7cea3 100644 --- a/app/controllers/admin/schedules_controller.rb +++ b/app/controllers/admin/schedules_controller.rb @@ -3,7 +3,7 @@ module Admin # By authorizing 'conference' resource, we can ensure there will be no unauthorized access to # the schedule of a conference, which should not be accessed in the first place load_and_authorize_resource :conference, find_by: :short_title - load_resource :program, through: :conference, singleton: true + load_and_authorize_resource :program, through: :conference, singleton: true load_and_authorize_resource :schedule, through: :program load_resource :event_schedules, through: :schedule load_resource :selected_schedule, through: :program, singleton: true