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:
Diffstat (limited to 'app/finders/packages/maven/package_finder.rb')
-rw-r--r--app/finders/packages/maven/package_finder.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/finders/packages/maven/package_finder.rb b/app/finders/packages/maven/package_finder.rb
index 7e753705cbd..ba3d4631f55 100644
--- a/app/finders/packages/maven/package_finder.rb
+++ b/app/finders/packages/maven/package_finder.rb
@@ -59,9 +59,8 @@ module Packages
# Returns the projects that the current user can view within a group.
def projects_visible_to_current_user
- ::Project
- .in_namespace(group.self_and_descendants.select(:id))
- .public_or_visible_to_user(current_user)
+ group.all_projects
+ .public_or_visible_to_user(current_user)
end
end
end