Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9339d59

Browse files
authored
fix(audit): properly set old workspace in putWorkspaceTTL (#4251)
1 parent 574635f commit 9339d59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

coderd/workspaces.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ func (api *API) putWorkspaceTTL(rw http.ResponseWriter, r *http.Request) {
638638
})
639639
)
640640
defer commitAudit()
641+
aReq.Old = workspace
641642

642643
if !api.Authorize(r, rbac.ActionUpdate, workspace) {
643644
httpapi.ResourceNotFound(rw)

0 commit comments

Comments
 (0)