diff options
author | Douwe Maan <douwe@gitlab.com> | 2016-05-25 23:28:17 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2016-05-25 23:28:17 +0300 |
commit | 997178220008696576ffb5cdee6cb9d0e7a44055 (patch) | |
tree | b2476fed3952a8df889995756d2c172adb50013f /lib | |
parent | 7fa1ab469f40dfced988a75b95e484e40615e32d (diff) | |
parent | b359d5d57f4b836c04e9e2ef7e1fcb3775bd5305 (diff) |
Merge branch 'fix-issue-17496' into 'master'
Fix groups API to list only user's accessible projects
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/17496
See merge request !1966
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/groups.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb index 91e420832f3..9d8b8d737a9 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -95,8 +95,7 @@ module API # GET /groups/:id/projects get ":id/projects" do group = find_group(params[:id]) - projects = group.projects - projects = filter_projects(projects) + projects = GroupProjectsFinder.new(group).execute(current_user) projects = paginate projects present projects, with: Entities::Project end |