Made viewing un published conferences a 403 unless user is a host
This commit is contained in:
parent
a6ee536e69
commit
faa2585939
@ -15,6 +15,8 @@ class ConferencesController < ApplicationController
|
|||||||
|
|
||||||
def view
|
def view
|
||||||
set_conference
|
set_conference
|
||||||
|
do_403 unless @this_conference.is_public || @this_conference.host?(current_user)
|
||||||
|
|
||||||
@workshops = Workshop.where(:conference_id => @conference.id)
|
@workshops = Workshop.where(:conference_id => @conference.id)
|
||||||
|
|
||||||
if @this_conference.workshop_schedule_published
|
if @this_conference.workshop_schedule_published
|
||||||
|
Loading…
x
Reference in New Issue
Block a user