Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-05-04 02:51:25 +0300
committerBob Van Landuyt <bob@gitlab.com>2017-05-10 17:48:18 +0300
commitea4eb460479a24fea9ee890c8ba8f6f4dec7f44b (patch)
tree0d035c07e2853a30bc56da0d4a226920e278f5ba /lib/api/groups.rb
parente5e94618c573fc85118ae76c1582be1ab30a72af (diff)
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.rb2
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