fix policy scope error

This commit is contained in:
Devin Howard 2016-11-30 11:41:30 -05:00
parent 3f161c1076
commit 3e6d1844a6

View file

@ -70,6 +70,7 @@ class SearchController < ApplicationController
builder = builder.where(user: user) if user
@topics = builder.order(:name)
else
skip_policy_scope
@topics = []
end