blob: 96a7b5b144dc1d8c5097c0127ef831500ae43b28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# frozen_string_literal: true
class Explore::GroupsController < Explore::ApplicationController
include GroupTree
feature_category :subgroups
urgency :low
def index
# For gitlab.com, including internal visibility groups here causes
# a major performance issue: https://gitlab.com/gitlab-org/gitlab/-/issues/358944
#
# For self-hosted users, not including internal groups here causes
# a lack of visibility: https://gitlab.com/gitlab-org/gitlab/-/issues/389041
user = Gitlab.com? ? nil : current_user
render_group_tree GroupsFinder.new(user).execute
end
end
|