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

show_inherited_labels_checker.rb « concerns « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9847226f5994ebc347353967862a160726bbbfe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

module ShowInheritedLabelsChecker
  extend ActiveSupport::Concern

  private

  def show_inherited_labels?(include_ancestor_groups)
    Feature.enabled?(:show_inherited_labels, @project || @group, default_enabled: true) || include_ancestor_groups # rubocop:disable Gitlab/ModuleWithInstanceVariables
  end
end