diff --git a/app/controllers/about_controller.rb b/app/controllers/about_controller.rb index 0d53930bcd3..40608cc50d4 100644 --- a/app/controllers/about_controller.rb +++ b/app/controllers/about_controller.rb @@ -5,8 +5,9 @@ class AboutController < ApplicationController before_filter :ensure_logged_in, only: [:live_post_counts] def index - @about = About.new + return redirect_to path('/login') if SiteSetting.login_required? && current_user.nil? + @about = About.new respond_to do |format| format.html do render :index diff --git a/app/views/static/show.html.erb b/app/views/static/show.html.erb index 7716a696451..c941961795e 100644 --- a/app/views/static/show.html.erb +++ b/app/views/static/show.html.erb @@ -1,7 +1,9 @@