mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: create type for unique role names (#13506)
* chore: create type for unique role names Using `string` was confusing when something should be combined with org context, and when not to. Naming this new name, "RoleIdentifier"
This commit is contained in:
@@ -497,7 +497,7 @@ func testDBAuthzRole(ctx context.Context) context.Context {
|
||||
ID: uuid.Nil.String(),
|
||||
Roles: rbac.Roles([]rbac.Role{
|
||||
{
|
||||
Name: "testing",
|
||||
Identifier: rbac.RoleIdentifier{Name: "testing"},
|
||||
DisplayName: "Unit Tests",
|
||||
Site: rbac.Permissions(map[string][]policy.Action{
|
||||
rbac.ResourceWildcard.Type: {policy.WildcardSymbol},
|
||||
|
||||
Reference in New Issue
Block a user