diff --git a/coderd/workspaces.go b/coderd/workspaces.go index 01f7abb7dd..3d08d22299 100644 --- a/coderd/workspaces.go +++ b/coderd/workspaces.go @@ -638,6 +638,7 @@ func (api *API) putWorkspaceTTL(rw http.ResponseWriter, r *http.Request) { }) ) defer commitAudit() + aReq.Old = workspace if !api.Authorize(r, rbac.ActionUpdate, workspace) { httpapi.ResourceNotFound(rw)