Skip to content

Commit b457981

Browse files
committed
typo
1 parent 1c6939e commit b457981

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coderd/database/dbauthz/customroles_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func TestUpsertCustomRoles(t *testing.T) {
107107
rbac.ResourceWorkspace.Type: {policy.ActionRead},
108108
}),
109109
},
110-
errorContains: "cannot assign permisisons to more than 1",
110+
errorContains: "cannot assign permissions to more than 1",
111111
},
112112
{
113113
name: "invalid-action",

coderd/database/dbauthz/dbauthz.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3403,7 +3403,7 @@ func (q *querier) UpsertCustomRole(ctx context.Context, arg database.UpsertCusto
34033403

34043404
if len(rbacRole.Org) > 1 {
34053405
// Again to avoid more complexity in our roles
3406-
return database.CustomRole{}, xerrors.Errorf("invalid custom role, cannot assign permisisons to more than 1 org at a time")
3406+
return database.CustomRole{}, xerrors.Errorf("invalid custom role, cannot assign permissions to more than 1 org at a time")
34073407
}
34083408

34093409
// Prevent escalation

0 commit comments

Comments
 (0)