Skip to content

Commit db76728

Browse files
authored
chore: change returned response for missing permissions to 403 from 404 (#16562)
1 parent 766c05c commit db76728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/coderd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ func New(options *Options) *API {
13041304
func(next http.Handler) http.Handler {
13051305
return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
13061306
if !api.Authorize(r, policy.ActionRead, rbac.ResourceDebugInfo) {
1307-
httpapi.ResourceNotFound(rw)
1307+
httpapi.Forbidden(rw)
13081308
return
13091309
}
13101310

0 commit comments

Comments
 (0)