Commit 976fa45e authored by Gualter's avatar Gualter

Remove subcategories_assigned_to_in from events controller (#213)

parent ff28c230
......@@ -17,7 +17,7 @@ class EventsController < ApplicationController
result = nil
if @current_user_is_reviewer
result = search @prefiltered_events.includes(:track, :subcategory).where(subcategory: current_user.subcategories_assigned_to_in(@conference)), params
result = search @prefiltered_events.includes(:track, :subcategory), params
else
result = search @prefiltered_events.includes(:track, :subcategory), params
end
......@@ -53,7 +53,7 @@ class EventsController < ApplicationController
result = nil
if @current_user_is_reviewer
result = search @prefiltered_events.includes(:event_ratings, :subcategory, :review_reservations).where(subcategory: current_user.subcategories_assigned_to_in(@conference)), params
result = search @prefiltered_events.includes(:event_ratings, :subcategory, :review_reservations), params
else
result = search @prefiltered_events.includes(:event_ratings).where(event_ratings: {person: @current_user.person, event_rating_type: 'expert_review'}), params
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment