blob: 6cb0736d7ef0d58e70ff5251599cde73342a9b2b (
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 :groups_and_projects
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
|