@ministryofjustice/hmpps-prison-permissions-lib
Version:
A library to centralise the process of determining whether a user should have access to create/read/update/delete a prison resource, for example, accessing a prisoner's Prisoner Profile.
14 lines (13 loc) • 557 B
TypeScript
export declare enum PermissionCheckStatus {
NOT_PERMITTED = "NOT_PERMITTED",// Generic not permitted status - default
NOT_IN_CASELOAD = "NOT_IN_CASELOAD",
NOT_ACTIVE_CASELOAD = "NOT_ACTIVE_CASELOAD",
RESTRICTED_PATIENT = "RESTRICTED_PATIENT",
PRISONER_IS_RELEASED = "PRISONER_IS_RELEASED",
PRISONER_IS_TRANSFERRING = "PRISONER_IS_TRANSFERRING",
EXCEEDS_TIME_RESTRICTION = "EXCEEDS_TIME_RESTRICTION",
ROLE_NOT_PRESENT = "ROLE_NOT_PRESENT",
NOT_PRISON_USER = "NOT_PRISON_USER",
READ_ONLY = "READ_ONLY",
OK = "OK"
}