From d1aa62d382397114345f8a658d1d90818eb39929 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Wed, 30 Nov 2016 11:46:09 -0500 Subject: [PATCH] fix policy scope error (#941) --- 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