debian-mirror-gitlab/app/helpers/one_trust_helper.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
250 B
Ruby
Raw Normal View History

2021-11-18 22:05:49 +05:30
# frozen_string_literal: true
module OneTrustHelper
def one_trust_enabled?
Feature.enabled?(:ecomm_instrumentation, type: :ops) &&
Gitlab.config.extra.has_key?('one_trust_id') &&
2021-12-11 22:18:48 +05:30
Gitlab.config.extra.one_trust_id.present?
2021-11-18 22:05:49 +05:30
end
end