Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd4d483 commit 356099bCopy full SHA for 356099b
coderd/httpmw/authorize_test.go
@@ -89,7 +89,8 @@ func TestExtractUserRoles(t *testing.T) {
89
90
orgRoles := []string{}
91
if i%2 == 0 {
92
- orgRoles = append(orgRoles, rbac.RoleOrgAdmin(organization.ID))
+ orgRoles = append(orgRoles, rbac.StaticRoleOrgAdmin())
93
+ roles = append(roles, rbac.RoleOrgAdmin(organization.ID))
94
}
95
_, err = db.InsertOrganizationMember(context.Background(), database.InsertOrganizationMemberParams{
96
OrganizationID: organization.ID,
@@ -99,7 +100,6 @@ func TestExtractUserRoles(t *testing.T) {
99
100
Roles: orgRoles,
101
})
102
require.NoError(t, err)
- roles = append(roles, orgRoles...)
103
roles = append(roles, rbac.RoleOrgMember(organization.ID))
104
105
return user, roles, token
0 commit comments