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:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-11-09 17:59:11 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2017-11-14 18:57:41 +0300
commit022d8420ec0713909ff379e1e8d36c4e46bde3a3 (patch)
treeb2cdf284c023430410239a2d41806e010615c0fa /app/helpers
parentfb7abd87daa8930682b05870361fe9dd112f050f (diff)
Include child projects a user can manage in namespace dropdowns
These dropdown options are used for creating and transfering projects.
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/namespaces_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/namespaces_helper.rb b/app/helpers/namespaces_helper.rb
index d7df9bb06d2..fa749098d76 100644
--- a/app/helpers/namespaces_helper.rb
+++ b/app/helpers/namespaces_helper.rb
@@ -4,7 +4,7 @@ module NamespacesHelper
end
def namespaces_options(selected = :current_user, display_path: false, extra_group: nil)
- groups = current_user.owned_groups + current_user.masters_groups
+ groups = current_user.manageable_groups.includes(:route)
users = [current_user.namespace]
unless extra_group.nil? || extra_group.is_a?(Group)