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/auth_helper.rb')
-rw-r--r--app/helpers/auth_helper.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/app/helpers/auth_helper.rb b/app/helpers/auth_helper.rb
index b7acc562be5..fc157df3891 100644
--- a/app/helpers/auth_helper.rb
+++ b/app/helpers/auth_helper.rb
@@ -182,26 +182,6 @@ module AuthHelper
current_user.allow_password_authentication_for_web? && !current_user.password_automatically_set?
end
- def google_tag_manager_enabled?
- return false unless Gitlab.com?
-
- if Feature.enabled?(:gtm_nonce, type: :ops)
- extra_config.has_key?('google_tag_manager_nonce_id') &&
- extra_config.google_tag_manager_nonce_id.present?
- else
- extra_config.has_key?('google_tag_manager_id') &&
- extra_config.google_tag_manager_id.present?
- end
- end
-
- def google_tag_manager_id
- return unless google_tag_manager_enabled?
-
- return extra_config.google_tag_manager_nonce_id if Feature.enabled?(:gtm_nonce, type: :ops)
-
- extra_config.google_tag_manager_id
- end
-
def auth_app_owner_text(owner)
return unless owner