mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +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
|
||||
}
|
||||
|
||||
|
@ -2,6 +2,7 @@ package coderd_test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
"testing"
|
||||
|
Reference in New Issue
Block a user