From 62b6c52f2324d96c1643c88c143bd0bd8668e91e Mon Sep 17 00:00:00 2001 From: Brett Kolodny Date: Thu, 13 Feb 2025 19:29:35 +0000 Subject: [PATCH] change response for permissions to 403 from 404 --- coderd/coderd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coderd/coderd.go b/coderd/coderd.go index 8ff8c05ee75b2..2b62d96b56459 100644 --- a/coderd/coderd.go +++ b/coderd/coderd.go @@ -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 } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy