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
This commit is contained in:
Go MAEDA
2022-11-01 03:26:15 +00:00
parent dcdf27b895
commit afbec488c4
2 changed files with 10 additions and 0 deletions

View File

@@ -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