diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-05-03 23:51:25 +0000 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-05-10 16:48:18 +0200 |
commit | ea4eb460479a24fea9ee890c8ba8f6f4dec7f44b (patch) | |
tree | 0d035c07e2853a30bc56da0d4a226920e278f5ba /lib/api/groups.rb | |
parent | e5e94618c573fc85118ae76c1582be1ab30a72af (diff) | |
download | gitlab-ce-ea4eb460479a24fea9ee890c8ba8f6f4dec7f44b.tar.gz |
Merge branch 'tc-fix-private-subgroups-shown' into 'security'
Use GroupsFinder to find subgroups the user has access to
See merge request !2096
Diffstat (limited to 'lib/api/groups.rb')
-rw-r--r-- | lib/api/groups.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb index 09d105f6b4c..9ccc75681f9 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -52,7 +52,7 @@ module API elsif current_user.admin Group.all elsif params[:all_available] - GroupsFinder.new.execute(current_user) + GroupsFinder.new(current_user).execute else current_user.groups end |