fix: compilation error on merge with Authorize call (#2319)

Merge caused compilation errors.
- Authorize call having too many arguments
- `workspaces_test.go` missing "fmt" import
This commit is contained in:
Steven Masley
2022-06-14 11:21:30 -05:00
committed by GitHub
parent c28b7ecdf2
commit 4734636b17
2 changed files with 3 additions and 1 deletions

View File

@ -263,7 +263,8 @@ func (api *API) postWorkspacesByOrganization(rw http.ResponseWriter, r *http.Req
return
}
if !api.Authorize(rw, r, rbac.ActionRead, template) {
if !api.Authorize(r, rbac.ActionRead, template) {
httpapi.ResourceNotFound(rw)
return
}