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

module BizibleHelper
  def bizible_enabled?(invite_email = nil)
    invite_email.blank? &&
      Feature.enabled?(:ecomm_instrumentation, type: :ops) &&
      Gitlab.config.extra.has_key?('bizible') &&
      Gitlab.config.extra.bizible.present? &&
      Gitlab.config.extra.bizible == true
  end
end