Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1823973

Browse files
committed
roles are personal user data
1 parent6f89f42 commit1823973

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)

[8]ページ先頭

©2009-2025 Movatter.jp