debian-mirror-gitlab/app/controllers/explore/groups_controller.rb
2023-01-12 18:35:48 +00:00

14 lines
346 B
Ruby

# frozen_string_literal: true
class Explore::GroupsController < Explore::ApplicationController
include GroupTree
feature_category :subgroups
urgency :low
def index
user = Feature.enabled?(:generic_explore_groups, current_user, type: :experiment) ? nil : current_user
render_group_tree GroupsFinder.new(user).execute
end
end