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

Commitd4e1124

Browse files
committed
userauth: use systemCtx when setting user groups
1 parent0985060 commitd4e1124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎coderd/userauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ func (api *API) oauthLogin(r *http.Request, params oauthLoginParams) (*http.Cook
849849

850850
// Ensure groups are correct.
851851
iflen(params.Groups)>0 {
852-
err:=api.Options.SetUserGroups(ctx,tx,user.ID,params.Groups)
852+
err:=api.Options.SetUserGroups(systemCtx,tx,user.ID,params.Groups)
853853
iferr!=nil {
854854
returnxerrors.Errorf("set user groups: %w",err)
855855
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp