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:
authorNick Thomas <nick@gitlab.com>2017-09-19 14:44:02 +0300
committerNick Thomas <nick@gitlab.com>2017-09-19 14:59:05 +0300
commit47cf3b4b6178b75cc39dbe74c0701e6a44b26fe4 (patch)
tree11b61104655610e843f8bf41f2958833a3b21061 /app/finders/groups_finder.rb
parent404a56235f86a69b05991efcf4cc5d7c5f5c4567 (diff)
Fix the groups API endpoint to handle ?owned=true correctly
Diffstat (limited to 'app/finders/groups_finder.rb')
-rw-r--r--app/finders/groups_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/groups_finder.rb b/app/finders/groups_finder.rb
index 88d71b0a87b..0c4c4b10fb6 100644
--- a/app/finders/groups_finder.rb
+++ b/app/finders/groups_finder.rb
@@ -57,7 +57,7 @@ class GroupsFinder < UnionFinder
end
def owned_groups
- current_user&.groups || Group.none
+ current_user&.owned_groups || Group.none
end
def include_public_groups?