Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4586398

Browse files
committed
fix test template acl perms
1 parent 8dea6c0 commit 4586398

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

coderd/insights_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import (
2929
"github.com/coder/coder/v2/coderd/database/dbrollup"
3030
"github.com/coder/coder/v2/coderd/database/dbtestutil"
3131
"github.com/coder/coder/v2/coderd/rbac"
32-
"github.com/coder/coder/v2/coderd/rbac/policy"
3332
"github.com/coder/coder/v2/coderd/workspaceapps"
3433
"github.com/coder/coder/v2/coderd/workspacestats"
3534
"github.com/coder/coder/v2/codersdk"
@@ -1574,7 +1573,7 @@ func TestUserActivityInsights_Golden(t *testing.T) {
15741573
OrganizationID: firstUser.OrganizationID,
15751574
CreatedBy: firstUser.UserID,
15761575
GroupACL: database.TemplateACL{
1577-
firstUser.OrganizationID.String(): []policy.Action{policy.ActionRead},
1576+
firstUser.OrganizationID.String(): db2sdk.TemplateRoleActions(codersdk.TemplateRoleUse),
15781577
},
15791578
})
15801579
err := db.UpdateTemplateVersionByID(context.Background(), database.UpdateTemplateVersionByIDParams{

0 commit comments

Comments
 (0)