diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index 92380185d..bdbb163a7 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -25,7 +25,7 @@ class SearchController < ApplicationController search = Search.new(params[:q], search_args) result = search.execute - result.find_user_data(guardian) + result.find_user_data(guardian) if result serializer = serialize_data(result, GroupedSearchResultSerializer, result: result)