debian-mirror-gitlab/app/controllers/explore/groups_controller.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
598 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
2015-09-11 14:41:01 +05:30
class Explore::GroupsController < Explore::ApplicationController
2018-03-17 18:26:18 +05:30
include GroupTree
2017-08-17 22:00:37 +05:30
2021-01-03 14:25:43 +05:30
feature_category :subgroups
2022-07-16 23:28:13 +05:30
urgency :low
2021-01-03 14:25:43 +05:30
2018-03-17 18:26:18 +05:30
def index
2023-05-27 22:25:52 +05:30
# 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
2023-01-13 00:05:48 +05:30
render_group_tree GroupsFinder.new(user).execute
2014-09-02 18:07:02 +05:30
end
end