Skip to content

Commit d4e1124

Browse files
committed
userauth: use systemCtx when setting user groups
1 parent 0985060 commit d4e1124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/userauth.go

+1-1
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
if len(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
if err != nil {
854854
return xerrors.Errorf("set user groups: %w", err)
855855
}

0 commit comments

Comments
 (0)