Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-02 21:46:06 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-02 21:46:06 +0400
commitccf0686b01160e4a61bf8fb4b26f43d1486af9c2 (patch)
tree6a07765f325ad4249ba59680bc6c87b35926c9bd /app/controllers/search_controller.rb
parentd431e4339269041784986da40a0e0879baaf96a9 (diff)
Fix api specs. Use id instead path
Diffstat (limited to 'app/controllers/search_controller.rb')
-rw-r--r--app/controllers/search_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb
index 4f45f9ddccb..a23292396a0 100644
--- a/app/controllers/search_controller.rb
+++ b/app/controllers/search_controller.rb
@@ -1,6 +1,6 @@
class SearchController < ApplicationController
def show
- result = SearchContext.new(current_user.project_ids, params).execute
+ result = SearchContext.new(current_user.authorized_projects.map(&:id), params).execute
@projects = result[:projects]
@merge_requests = result[:merge_requests]