Allow to view schedule without login

Add show and events action's can abilities of schedule for not_signed_in user in order to make schedule available to view without login.

Closes #1343
This commit is contained in:
Chaitanya 2017-03-24 20:52:27 +05:30
parent 8fb29972da
commit 0e8e626156
2 changed files with 6 additions and 1 deletions

View file

@ -1,7 +1,8 @@
class SchedulesController < ApplicationController
load_and_authorize_resource
protect_from_forgery with: :null_session
before_action :respond_to_options
load_and_authorize_resource :conference, find_by: :short_title
load_resource :conference, find_by: :short_title
load_resource :program, through: :conference, singleton: true, except: :index
def show