FIX: Logs api scope not working (#25215)

This commit is contained in:
Blake Erickson
2024-01-10 19:30:10 -07:00
committed by GitHub
parent c569107872
commit 6ebe61ecec
3 changed files with 31 additions and 0 deletions

View File

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