mirror of https://github.com/coder/coder.git
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:
parent
c28b7ecdf2
commit
4734636b17
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ package coderd_test
|
|||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
"testing"
|
||||
|
|
Loading…
Reference in New Issue