Welcome to mirror list, hosted at ThFree Co, Russian Federation.

groups_controller.rb « explore « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ac355b861b3b8a98602b091a0bd4bd3092109db3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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