Skip to content

Commit d8f3f0e

Browse files
committed
Go fmt
1 parent 7d10d2f commit d8f3f0e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

coderd/workspacebuilds.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import (
77
"fmt"
88
"net/http"
99

10-
"github.com/coder/coder/coderd/rbac"
11-
1210
"github.com/go-chi/chi/v5"
1311
"github.com/google/uuid"
1412
"github.com/moby/moby/pkg/namesgenerator"
@@ -17,6 +15,7 @@ import (
1715
"github.com/coder/coder/coderd/database"
1816
"github.com/coder/coder/coderd/httpapi"
1917
"github.com/coder/coder/coderd/httpmw"
18+
"github.com/coder/coder/coderd/rbac"
2019
"github.com/coder/coder/codersdk"
2120
)
2221

@@ -49,7 +48,7 @@ func (api *api) workspaceBuild(rw http.ResponseWriter, r *http.Request) {
4948
func (api *api) workspaceBuilds(rw http.ResponseWriter, r *http.Request) {
5049
workspace := httpmw.WorkspaceParam(r)
5150

52-
if !api.Authorize(rw, r, rbac.ActionRead, rbac.ResourceWorkspace.
51+
if !api.Authorize(rw, r, rbac.ActionRead, rbac.ResourceWorkspace.
5352
InOrg(workspace.OrganizationID).WithOwner(workspace.OwnerID.String()).WithID(workspace.ID.String())) {
5453
return
5554
}

0 commit comments

Comments
 (0)