@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.
12 lines (11 loc) • 469 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",
ROLE_NOT_PRESENT = "ROLE_NOT_PRESENT",
NOT_PRISON_USER = "NOT_PRISON_USER",
OK = "OK"
}