From cb50ecdb073fdf88b9c535edd764f5de722b44e2 Mon Sep 17 00:00:00 2001 From: Hiroaki Ninomiya Date: Tue, 16 May 2017 07:41:09 +0900 Subject: chore(landing_strip): hide signup path unless the instance allows registration. (#3055) --- app/helpers/application_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/helpers') 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 -- cgit