Don't allow not_signed_in user to view schedules if not marked as public in program

This commit is contained in:
Chaitanya 2017-04-22 16:12:08 +05:30
parent 6de3fdc249
commit f38b755e62

View file

@ -1,9 +1,9 @@
class SchedulesController < ApplicationController
load_and_authorize_resource
protect_from_forgery with: :null_session
before_action :respond_to_options
load_resource :conference, find_by: :short_title
load_resource :program, through: :conference, singleton: true, except: :index
load_and_authorize_resource :selected_schedule, through: :program, singleton: true
def show
@rooms = @conference.venue.rooms if @conference.venue