diff --git a/packages/server/src/api/routes/tests/role.spec.ts b/packages/server/src/api/routes/tests/role.spec.ts index 1eb59c5a0c..a4e672e961 100644 --- a/packages/server/src/api/routes/tests/role.spec.ts +++ b/packages/server/src/api/routes/tests/role.spec.ts @@ -200,7 +200,7 @@ describe("/roles", () => { ...res, permissionId: undefined, }) - expect(updatedRes.permissionId).toEqual(PermissionLevel.READ) + expect(updatedRes.permissionId).toEqual(BuiltinPermissionID.READ_ONLY) }) }) diff --git a/packages/types/src/sdk/permissions.ts b/packages/types/src/sdk/permissions.ts index d27876156e..bb36af4170 100644 --- a/packages/types/src/sdk/permissions.ts +++ b/packages/types/src/sdk/permissions.ts @@ -1,3 +1,5 @@ +// used in resource permissions - permissions can be at one of these levels +// endpoints will set what type of permission they require (e.g. searching requires READ) export enum PermissionLevel { READ = "read", WRITE = "write",