Don't allow not_signed_in user to view schedules if not marked as public in program
This commit is contained in:
parent
6de3fdc249
commit
f38b755e62
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue