Class: Explore::GroupsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Explore::GroupsController
- Includes:
- GroupTree
- Defined in:
- app/controllers/explore/groups_controller.rb
Instance Method Summary collapse
Methods included from GroupTree
#filtered_groups_with_ancestors, #render_group_tree
Instance Method Details
#index ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/explore/groups_controller.rb', line 9 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 |