diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-02 19:46:06 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-02 19:46:06 +0200 |
commit | ccf0686b01160e4a61bf8fb4b26f43d1486af9c2 (patch) | |
tree | 6a07765f325ad4249ba59680bc6c87b35926c9bd /app/controllers/search_controller.rb | |
parent | d431e4339269041784986da40a0e0879baaf96a9 (diff) | |
download | gitlab-ce-ccf0686b01160e4a61bf8fb4b26f43d1486af9c2.tar.gz |
Fix api specs. Use id instead path
Diffstat (limited to 'app/controllers/search_controller.rb')
-rw-r--r-- | app/controllers/search_controller.rb | 2 |
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] |