2020-09-25 05:09:40 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module ShowInheritedLabelsChecker
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def show_inherited_labels?(include_ancestor_groups)
|
2020-10-15 14:08:43 -04:00
|
|
|
Feature.enabled?(:show_inherited_labels, @project || @group, default_enabled: true) || include_ancestor_groups # rubocop:disable Gitlab/ModuleWithInstanceVariables
|
2020-09-25 05:09:40 -04:00
|
|
|
end
|
|
|
|
end
|