From 3e6d1844a694b04da1dccab17125d219f82e4bf4 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Wed, 30 Nov 2016 11:41:30 -0500 Subject: [PATCH] fix policy scope error --- app/controllers/search_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index ae686d8f..c9fcc7db 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -70,6 +70,7 @@ class SearchController < ApplicationController builder = builder.where(user: user) if user @topics = builder.order(:name) else + skip_policy_scope @topics = [] end