summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2016-01-07 10:54:29 +0200
committerValery Sizov <vsv2711@gmail.com>2016-01-07 10:54:29 +0200
commit8c8b8978cff03344d0331d3bfae4dfa1bedf37af (patch)
treeb30a7722aa687b00bd9b358e79efe1521b2dac37 /app/controllers
parentaacc700c4aa6cfce1db1d09b9029f2e63c0f13b6 (diff)
downloadgitlab-ce-elasticsearch.tar.gz
elastic: almost all integrated exept view logicelasticsearch
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/search_controller.rb4
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])