summaryrefslogtreecommitdiff
path: root/app/helpers/one_trust_helper.rb
blob: 9f92a73a4d41845fac7dc574262b131e61747d3e (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

module OneTrustHelper
  def one_trust_enabled?
    Feature.enabled?(:ecomm_instrumentation, type: :ops) &&
      Gitlab.config.extra.has_key?('one_trust_id') &&
      Gitlab.config.extra.one_trust_id.present? &&
      !current_user
  end
end