Skip to content

Commit ea9b9be

Browse files
committed
typo
1 parent 1c6939e commit ea9b9be

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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

coderd/database/queries/roles.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ INSERT INTO
1818
org_permissions,
1919
user_permissions,
2020
created_at,
21-
last_updted
21+
last_updated
2222
)
2323
VALUES (
2424
-- Always force lowercase names

0 commit comments

Comments
 (0)