summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-11-01 03:26:15 +0000
committerGo MAEDA <maeda@farend.jp>2022-11-01 03:26:15 +0000
commitafbec488c44b2c8efab1b2259bba89a768b043cc (patch)
treeb79df336f780be2f78396973789141b4732889a8 /app
parentdcdf27b8958606b6a6893c4b754ef2c97c3c0313 (diff)
downloadredmine-afbec488c44b2c8efab1b2259bba89a768b043cc.tar.gz
redmine-afbec488c44b2c8efab1b2259bba89a768b043cc.zip
Always allow access to /robots.txt for Anonymous (#37807).
Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@21939 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/welcome_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb
index e526fe5b1..0807c8232 100644
--- a/app/controllers/welcome_controller.rb
+++ b/app/controllers/welcome_controller.rb
@@ -20,6 +20,8 @@
class WelcomeController < ApplicationController
self.main_menu = false
+ skip_before_action :check_if_login_required, only: [:robots]
+
def index
@news = News.latest User.current
end