diff options
Diffstat (limited to 'app/controllers/search_controller.rb')
-rw-r--r-- | app/controllers/search_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index 68dfc4d571c..542e2397504 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -48,9 +48,9 @@ class SearchController < ApplicationController if project return access_denied! unless can?(current_user, :download_code, project) - @search_results = SearchService.new(current_user, params).project_search(project) + @search_results = SearchService.new(nil, current_user, params).project_search(project) else - @search_results = SearchService.new(current_user, params).global_search + @search_results = SearchService.new(nil, current_user, params).global_search end @search_results = SearchDecorator.new(@search_results, params[:type]) |