2021-10-13 14:12:40 -04:00
|
|
|
# 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-11-04 23:12:26 -04:00
|
|
|
Gitlab.config.extra.one_trust_id.present?
|
2021-10-13 14:12:40 -04:00
|
|
|
end
|
|
|
|
end
|