debian-mirror-gitlab/app/helpers/one_trust_helper.rb
2021-11-18 22:05:49 +05:30

10 lines
273 B
Ruby

# 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