mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:11:08 +08:00
FIX: Logs api scope not working (#25215)
This commit is contained in:
@ -48,6 +48,9 @@ class RouteMatcher
|
||||
# message_bus is not a rails route, special handling
|
||||
return true if actions.include?("message_bus") && request.fullpath =~ %r{\A/message-bus/.*/poll}
|
||||
|
||||
# logster is not a rails route, special handling
|
||||
return true if actions.include?(Logster::Web) && request.fullpath =~ %r{\A/logs/.*\.json\z}
|
||||
|
||||
path_params = path_params_from_request(request)
|
||||
actions.include? "#{path_params[:controller]}##{path_params[:action]}"
|
||||
end
|
||||
|
Reference in New Issue
Block a user