chore: change returned response for missing permissions to 403 from 404 (#16562)

This commit is contained in:
brettkolodny
2025-02-13 17:05:20 -05:00
committed by GitHub
parent 766c05cfc6
commit db767286b9

View File

@ -1304,7 +1304,7 @@ func New(options *Options) *API {
func(next http.Handler) http.Handler {
return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
if !api.Authorize(r, policy.ActionRead, rbac.ResourceDebugInfo) {
httpapi.ResourceNotFound(rw)
httpapi.Forbidden(rw)
return
}