mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix(audit): properly set old workspace in putWorkspaceTTL (#4251)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user