summaryrefslogtreecommitdiff
path: root/lib/api/groups.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-04-06 10:22:04 +0000
committerRémy Coutable <remy@rymai.me>2017-04-06 10:22:04 +0000
commit32db15b24b8c69e39451f4afb951c993f9fbf31e (patch)
tree76e0f408dbbebe52e95824b1aa1e030b3a819fdb /lib/api/groups.rb
parentd7e3f2322fd0ad632687f2f27a1cf2aac5474ac9 (diff)
parentb996a82ff44e3bcad5e5fb70cabbfa808d06cf62 (diff)
downloadgitlab-ce-32db15b24b8c69e39451f4afb951c993f9fbf31e.tar.gz
Merge branch '28810-projectfinder-should-handle-more-options' into 'master'
ProjectsFinder should handle more options Closes #28810 See merge request !9682
Diffstat (limited to 'lib/api/groups.rb')
-rw-r--r--lib/api/groups.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb
index 8f3799417e3..605769eddde 100644
--- a/lib/api/groups.rb
+++ b/lib/api/groups.rb
@@ -142,7 +142,7 @@ module API
end
get ":id/projects" do
group = find_group!(params[:id])
- projects = GroupProjectsFinder.new(group).execute(current_user)
+ projects = GroupProjectsFinder.new(group: group, current_user: current_user).execute
projects = filter_projects(projects)
entity = params[:simple] ? Entities::BasicProjectDetails : Entities::Project
present paginate(projects), with: entity, current_user: current_user