mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: change returned response for missing permissions to 403 from 404 (#16562)
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user