Comment and test case.

This commit is contained in:
mike12345567 2024-10-23 15:10:53 +01:00
parent 8f21802e6e
commit 3ddd8e10cc
2 changed files with 3 additions and 1 deletions

View File

@ -200,7 +200,7 @@ describe("/roles", () => {
...res,
permissionId: undefined,
})
expect(updatedRes.permissionId).toEqual(PermissionLevel.READ)
expect(updatedRes.permissionId).toEqual(BuiltinPermissionID.READ_ONLY)
})
})

View File

@ -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",