mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
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:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user