Skip to content

Commit 51cc138

Browse files
committed
Minor fixes
1 parent 93deee5 commit 51cc138

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

coderd/database/dbauthz/dbauthz.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,6 +1759,8 @@ func (q *querier) GetUserWorkspaceBuildParameters(ctx context.Context, ownerID u
17591759
if err != nil {
17601760
return nil, err
17611761
}
1762+
// The ability to update the user implies either the user themselves or someone
1763+
// with complete admin access to the user account.
17621764
if err := q.authorizeContext(ctx, rbac.ActionUpdate, u.UserDataRBACObject()); err != nil {
17631765
return nil, err
17641766
}

codersdk/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ type OIDCAuthMethod struct {
224224
type UserParameter struct {
225225
Name string `json:"name"`
226226
Value string `json:"value"`
227-
LastUsedAt time.Time `json:"last_used"`
227+
LastUsedAt time.Time `json:"last_used_at" format:"date-time"`
228228
}
229229

230230
// UserParameters returns all recently used parameters for the given user.

site/src/api/typesGenerated.ts

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)