diff --git a/app/controllers/api/speakers_controller.rb b/app/controllers/api/speakers_controller.rb index 7fe7399..c98a7fc 100644 --- a/app/controllers/api/speakers_controller.rb +++ b/app/controllers/api/speakers_controller.rb @@ -3,6 +3,6 @@ class Api::SpeakersController < Api::ApplicationController before_filter :require_current_conference! def index - @speakers = PersonalProfile.joins(user: {participations: {event: :proposition}}).where(events: {id: current_conference.approved_events.pluck(:id)}).distinct + @speakers = PersonalProfile.joins(user: {participations: {event: :proposition}}).where(events: {id: current_conference.approved_events.pluck(:id)}, conference: current_conference).distinct end end