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)