From 061bcd29e566f574c45134e3dfa6957a5cd5b949 Mon Sep 17 00:00:00 2001 From: Dan Lysiak <50049163+danlysiak@users.noreply.github.com> Date: Wed, 31 Jul 2024 14:27:27 +0100 Subject: [PATCH] EXUI-2067 - Support `PROFESSIONAL` role categories from RAS (#3770) * EXUI-2067 - Support PROFESSIONAL role categories from RAS * Suppression --------- Co-authored-by: RiteshHMCTS <74713687+RiteshHMCTS@users.noreply.github.com> --- api/roleAccess/exclusionService.ts | 2 ++ api/roleAccess/models/allocate-role.enum.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/api/roleAccess/exclusionService.ts b/api/roleAccess/exclusionService.ts index 4e2b303c17..18928dbac8 100644 --- a/api/roleAccess/exclusionService.ts +++ b/api/roleAccess/exclusionService.ts @@ -154,6 +154,8 @@ export function mapRoleCategory(roleCategory: string): RoleCategory { return RoleCategory.ADMIN; case 'CTSC': return RoleCategory.CTSC; + case 'PROFESSIONAL': + return RoleCategory.PROFESSIONAL; default: throw new Error('Invalid roleCategory'); } diff --git a/api/roleAccess/models/allocate-role.enum.ts b/api/roleAccess/models/allocate-role.enum.ts index c32ce784ca..de16b88659 100644 --- a/api/roleAccess/models/allocate-role.enum.ts +++ b/api/roleAccess/models/allocate-role.enum.ts @@ -9,6 +9,7 @@ export enum RoleCategory { LEGAL_OPERATIONS = 'LEGAL_OPERATIONS', ADMIN = 'ADMIN', CTSC = 'CTSC', + PROFESSIONAL = 'PROFESSIONAL', } export enum AllocateTo {