mirror of https://github.com/coder/coder.git
fix(audit): properly set old workspace in putWorkspaceTTL (#4251)
This commit is contained in:
parent
574635f43d
commit
9339d597b9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue