about summary refs log tree commit diff
path: root/app/helpers/admin/settings_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/admin/settings_helper.rb')
-rw-r--r--app/helpers/admin/settings_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/helpers/admin/settings_helper.rb b/app/helpers/admin/settings_helper.rb
index a133b4e7d..552a3ee5a 100644
--- a/app/helpers/admin/settings_helper.rb
+++ b/app/helpers/admin/settings_helper.rb
@@ -1,4 +1,7 @@
 # frozen_string_literal: true
 
 module Admin::SettingsHelper
+  def captcha_available?
+    ENV['HCAPTCHA_SECRET_KEY'].present? && ENV['HCAPTCHA_SITE_KEY'].present?
+  end
 end