mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
fix: improve codersdk error messages when not JSON (#4495)
This commit is contained in:
@ -421,7 +421,7 @@ func (api *API) fetchTemplateVersionDryRunJob(rw http.ResponseWriter, r *http.Re
|
||||
return database.ProvisionerJob{}, false
|
||||
}
|
||||
|
||||
// Do a workspace resource check since it's basically a workspace dry-run .
|
||||
// Do a workspace resource check since it's basically a workspace dry-run.
|
||||
if !api.Authorize(r, rbac.ActionRead,
|
||||
rbac.ResourceWorkspace.InOrg(templateVersion.OrganizationID).WithOwner(job.InitiatorID.String())) {
|
||||
httpapi.Forbidden(rw)
|
||||
|
Reference in New Issue
Block a user