Comment and test case.
This commit is contained in:
parent
8f21802e6e
commit
3ddd8e10cc
|
@ -200,7 +200,7 @@ describe("/roles", () => {
|
||||||
...res,
|
...res,
|
||||||
permissionId: undefined,
|
permissionId: undefined,
|
||||||
})
|
})
|
||||||
expect(updatedRes.permissionId).toEqual(PermissionLevel.READ)
|
expect(updatedRes.permissionId).toEqual(BuiltinPermissionID.READ_ONLY)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
export enum PermissionLevel {
|
||||||
READ = "read",
|
READ = "read",
|
||||||
WRITE = "write",
|
WRITE = "write",
|
||||||
|
|
Loading…
Reference in New Issue