Skip to content

Commit 1823973

Browse files
committed
roles are personal user data
1 parent 6f89f42 commit 1823973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ func (api *API) userRoles(rw http.ResponseWriter, r *http.Request) {
10221022
ctx := r.Context()
10231023
user := httpmw.UserParam(r)
10241024

1025-
if !api.Authorize(r, policy.ActionRead, user) {
1025+
if !api.Authorize(r, policy.ActionReadPersonal, user) {
10261026
httpapi.ResourceNotFound(rw)
10271027
return
10281028
}

0 commit comments

Comments
 (0)
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