@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.
38 lines (37 loc) • 1.82 kB
TypeScript
export declare enum Role {
ActivityHub = "ROLE_ACTIVITY_HUB",
AddSensitiveCaseNotes = "ROLE_ADD_SENSITIVE_CASE_NOTES",
AdjustmentsMaintainer = "ROLE_ADJUSTMENTS_MAINTAINER",
ApproveCategorisation = "ROLE_APPROVE_CATEGORISATION",
CategorisationSecurity = "ROLE_CATEGORISATION_SECURITY",
CellMove = "ROLE_CELL_MOVE",
ContactsAdministrator = "ROLE_CONTACTS_ADMINISTRATOR",
ContactsAuthoriser = "ROLE_CONTACTS_AUTHORISER",
CreateCategorisation = "ROLE_CREATE_CATEGORISATION",
CreateRecategorisation = "ROLE_CREATE_RECATEGORISATION",
DeleteSensitiveCaseNotes = "ROLE_DELETE_SENSITIVE_CASE_NOTES",
DietAndAllergiesEdit = "ROLE_DIET_AND_FOOD_ALLERGIES_EDIT",
GlobalSearch = "ROLE_GLOBAL_SEARCH",
InactiveBookings = "ROLE_INACTIVE_BOOKINGS",
PathfinderApproval = "ROLE_PF_APPROVAL",
PathfinderHQ = "ROLE_PF_HQ",
PathfinderLocalReader = "ROLE_PF_LOCAL_READER",
PathfinderNationalReader = "ROLE_PF_NATIONAL_READER",
PathfinderPolice = "ROLE_PF_POLICE",
PathfinderPsychologist = "ROLE_PF_PSYCHOLOGIST",
PathfinderStdPrison = "ROLE_PF_STD_PRISON",
PathfinderStdProbation = "ROLE_PF_STD_PROBATION",
PathfinderUser = "ROLE_PF_USER",
PomUser = "ROLE_POM",
PrisonerProfilePhotoUpload = "ROLE_PRISONER_PROFILE_PHOTO_UPLOAD",
PrisonerProfileSensitiveEdit = "ROLE_PRISONER_PROFILE_SENSITIVE_RW",
ReceptionUser = "ROLE_PRISON_RECEPTION",
ReleaseDatesCalculator = "ROLE_RELEASE_DATES_CALCULATOR",
SocCommunity = "ROLE_SOC_COMMUNITY",
SocCustody = "ROLE_SOC_CUSTODY",
SocDataAnalyst = "ROLE_SOC_DATA_ANALYST",
SocDataManager = "ROLE_SOC_DATA_MANAGER",
UpdateAlert = "ROLE_UPDATE_ALERT",
ViewProbationDocuments = "ROLE_VIEW_PROBATION_DOCUMENTS",
ViewSensitiveCaseNotes = "ROLE_VIEW_SENSITIVE_CASE_NOTES"
}