mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 20:56:54 +08:00
SECURITY: banner-info (#17071)
This commit is contained in:
@ -676,6 +676,7 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
def banner_json
|
||||
json = ApplicationController.banner_json_cache["json"]
|
||||
return "{}" if !current_user && SiteSetting.login_required?
|
||||
|
||||
unless json
|
||||
topic = Topic.where(archetype: Archetype.banner).first
|
||||
|
Reference in New Issue
Block a user