Fixed "Your Workshops" for admins

This commit is contained in:
Godwin 2016-07-18 14:24:45 -07:00 committed by GitHub
parent d27079a6db
commit 36d464427d

View File

@ -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