Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/bizible_helper.rb')
-rw-r--r--app/helpers/bizible_helper.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/helpers/bizible_helper.rb b/app/helpers/bizible_helper.rb
index 970cc6558da..4c8d3744ced 100644
--- a/app/helpers/bizible_helper.rb
+++ b/app/helpers/bizible_helper.rb
@@ -1,8 +1,9 @@
# frozen_string_literal: true
module BizibleHelper
- def bizible_enabled?
- Feature.enabled?(:ecomm_instrumentation, type: :ops) &&
+ 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