(ctx context.Context, arg database.UpdateUserSecretByUserIDAndNameParams)
| 7570 | } |
| 7571 | |
| 7572 | func (q *querier) UpdateUserSecretByUserIDAndName(ctx context.Context, arg database.UpdateUserSecretByUserIDAndNameParams) (database.UserSecret, error) { |
| 7573 | obj := rbac.ResourceUserSecret.WithOwner(arg.UserID.String()) |
| 7574 | if err := q.authorizeContext(ctx, policy.ActionUpdate, obj); err != nil { |
| 7575 | return database.UserSecret{}, err |
| 7576 | } |
| 7577 | return q.db.UpdateUserSecretByUserIDAndName(ctx, arg) |
| 7578 | } |
| 7579 | |
| 7580 | func (q *querier) UpdateUserShellToolDisplayMode(ctx context.Context, arg database.UpdateUserShellToolDisplayModeParams) (string, error) { |
| 7581 | user, err := q.db.GetUserByID(ctx, arg.UserID) |
nothing calls this directly
no test coverage detected