debian-mirror-gitlab/app/controllers/explore/groups_controller.rb
2023-01-13 15:02:22 +05:30

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