about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorHiroaki Ninomiya <me@treby.info>2017-05-16 07:41:09 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-16 00:41:09 +0200
commitcb50ecdb073fdf88b9c535edd764f5de722b44e2 (patch)
tree5bbc7c720d1a132cb2c74b6755542db2b8c717e8 /app/helpers
parent137912468216c1e7467212b7573b613f479eabb8 (diff)
chore(landing_strip): hide signup path unless the instance allows registration. (#3055)
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 92ffac33b..8f1cd8fce 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -9,6 +9,10 @@ module ApplicationHelper
     !user_signed_in? && !single_user_mode?
   end
 
+  def open_registrations?
+    Setting.open_registrations
+  end
+
   def add_rtl_body_class(other_classes)
     other_classes = "#{other_classes} rtl" if [:ar, :fa, :he].include?(I18n.locale)
     other_classes