Skip to content

chore: add github.com user id association #14045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 2, 2024
Prev Previous commit
Next Next commit
Update coderd/database/dbauthz/dbauthz.go
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com>
  • Loading branch information
kylecarbs and Emyrk committed Aug 2, 2024
commit f9214ed4226bd445c01fe19d0428f0bf7ab3e2b8
2 changes: 1 addition & 1 deletion coderd/database/dbauthz/dbauthz.go
Original file line number Diff line number Diff line change
Expand Up @@ -3268,7 +3268,7 @@ func (q *querier) UpdateUserGithubComUserID(ctx context.Context, arg database.Up

err = q.authorizeContext(ctx, policy.ActionUpdatePersonal, user)
if err != nil {
// Admins can update passwords for other users.
// System user can also update
err = q.authorizeContext(ctx, policy.ActionUpdate, user)
if err != nil {
return err
Expand Down