Browse Source

Made viewing un published conferences a 403 unless user is a host

development
Godwin 8 years ago
parent
commit
faa2585939
  1. 2
      app/controllers/conferences_controller.rb

2
app/controllers/conferences_controller.rb

@ -15,6 +15,8 @@ class ConferencesController < ApplicationController
def view
set_conference
do_403 unless @this_conference.is_public || @this_conference.host?(current_user)
@workshops = Workshop.where(:conference_id => @conference.id)
if @this_conference.workshop_schedule_published

Loading…
Cancel
Save