mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
chore: change view perm to use (#4496)
This commit is contained in:
@ -420,6 +420,7 @@ func (api *API) fetchTemplateVersionDryRunJob(rw http.ResponseWriter, r *http.Re
|
||||
httpapi.Forbidden(rw)
|
||||
return database.ProvisionerJob{}, false
|
||||
}
|
||||
|
||||
// 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())) {
|
||||
|
Reference in New Issue
Block a user