diff options
author | vanadium23 <chernoffivan@gmail.com> | 2017-06-29 20:20:59 +0300 |
---|---|---|
committer | vanadium23 <chernoffivan@gmail.com> | 2017-07-06 08:04:54 +0300 |
commit | 8d44d5142ae8a5e00b8417d2db8a7627fea0ef57 (patch) | |
tree | 01f8665234bbb169ce44a4a955a34436b8af96fa /app/finders | |
parent | 462b1ed99d729c3ede32d00fbac042ecb32268b1 (diff) | |
download | gitlab-ce-8d44d5142ae8a5e00b8417d2db8a7627fea0ef57.tar.gz |
Add user projects API
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/projects_finder.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/finders/projects_finder.rb b/app/finders/projects_finder.rb index 8bfbe37c543..aa80dfc3f37 100644 --- a/app/finders/projects_finder.rb +++ b/app/finders/projects_finder.rb @@ -28,7 +28,14 @@ class ProjectsFinder < UnionFinder end def execute - collection = init_collection + user = params.delete(:user) + collection = + if user + PersonalProjectsFinder.new(user).execute(current_user) + else + init_collection + end + collection = by_ids(collection) collection = by_personal(collection) collection = by_starred(collection) |