Browse Source

Fixed "Your Workshops" for admins

development
Godwin 8 years ago
committed by GitHub
parent
commit
36d464427d
  1. 2
      app/controllers/conferences_controller.rb

2
app/controllers/conferences_controller.rb

@ -727,7 +727,7 @@ class ConferencesController < ApplicationController
# put wach workshop into the correct array # put wach workshop into the correct array
Workshop.where(conference_id: @this_conference.id).each do | workshop | Workshop.where(conference_id: @this_conference.id).each do | workshop |
if workshop.can_edit?(current_user) if workshop.creator?(current_user) || workshop.collaborator?(current_user)
@my_workshops << workshop @my_workshops << workshop
elsif workshop.needs_facilitators elsif workshop.needs_facilitators
@workshops_in_need << workshop @workshops_in_need << workshop

Loading…
Cancel
Save