From 299c449b3a9a6e4c519adb19576932a5508f97c8 Mon Sep 17 00:00:00 2001 From: m-meulendijks-v1 <107135537+m-meulendijks-v1@users.noreply.github.com> Date: Tue, 1 Oct 2024 09:50:12 +0100 Subject: [PATCH] CIV-15062 - add CTSC ccd roles for case file view (#4865) * CIV-15062 - add ctsc + nbc permissions to componentLauncher * CIV-15062 - componentLauncher given extra authorisation * CIV-15062 - add ccd roles directly * CIV-15062 - add extra authorisations for systemGeneratedDocuments * CIV-15062 - updated authorisations to nonprod * CIV-15062 - add authorisation to fields --------- Co-authored-by: mounikahmcts <43175082+mounikahmcts@users.noreply.github.com> --- bin/add-roles.sh | 4 +- ...AuthorisationCaseField-CUI-CP-nonprod.json | 17 +- ...ield-CaseFileView-amendBundle-nonprod.json | 460 ++++++++++++++++++ .../reform/civil/HighLevelDataSetupApp.java | 5 +- 4 files changed, 481 insertions(+), 5 deletions(-) create mode 100644 ccd-definition/AuthorisationCaseField/AuthorisationCaseField-CaseFileView-amendBundle-nonprod.json diff --git a/bin/add-roles.sh b/bin/add-roles.sh index 594115e7af..5c4f5b8ea3 100755 --- a/bin/add-roles.sh +++ b/bin/add-roles.sh @@ -41,7 +41,9 @@ set -eo pipefail ./bin/utils/ccd-add-role.sh "hearing-centre-team-leader" ./bin/utils/ccd-add-role.sh "next-hearing-date-admin" ./bin/utils/ccd-add-role.sh "court-officer-order" - +./bin/utils/ccd-add-role.sh "nbc-team-leader" +./bin/utils/ccd-add-role.sh "ctsc" +./bin/utils/ccd-add-role.sh "ctsc-team-leader" roles=("solicitor" "systemupdate" "admin" "staff") for role in "${roles[@]}" diff --git a/ccd-definition/AuthorisationCaseField/AuthorisationCaseField-CUI-CP-nonprod.json b/ccd-definition/AuthorisationCaseField/AuthorisationCaseField-CUI-CP-nonprod.json index 4e6f1df6b5..23f064fa96 100644 --- a/ccd-definition/AuthorisationCaseField/AuthorisationCaseField-CUI-CP-nonprod.json +++ b/ccd-definition/AuthorisationCaseField/AuthorisationCaseField-CUI-CP-nonprod.json @@ -961,7 +961,11 @@ { "UserRoles": [ "RES-SOL-ONE-SPEC-PROFILE", - "CITIZEN-DEFENDANT-PROFILE" + "CITIZEN-DEFENDANT-PROFILE", + "judge-profile", + "hearing-schedule-access", + "caseworker-civil-admin" + ], "CRUD": "CRU" }, @@ -981,7 +985,12 @@ { "UserRoles": [ "CITIZEN-CLAIMANT-PROFILE", - "citizen-profile" + "citizen-profile", + "cui-nbc-profile", + "cui-admin-profile", + "judge-profile", + "hearing-schedule-access", + "caseworker-civil-admin" ], "CRUD": "CRU" }, @@ -1000,7 +1009,9 @@ { "UserRoles": [ "CITIZEN-DEFENDANT-PROFILE", - "citizen-profile" + "citizen-profile", + "cui-nbc-profile", + "cui-admin-profile" ], "CRUD": "CRU" }, diff --git a/ccd-definition/AuthorisationCaseField/AuthorisationCaseField-CaseFileView-amendBundle-nonprod.json b/ccd-definition/AuthorisationCaseField/AuthorisationCaseField-CaseFileView-amendBundle-nonprod.json new file mode 100644 index 0000000000..cd70ac80f9 --- /dev/null +++ b/ccd-definition/AuthorisationCaseField/AuthorisationCaseField-CaseFileView-amendBundle-nonprod.json @@ -0,0 +1,460 @@ +[ + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "componentLauncher", + "AccessControl": [ + { + "UserRoles": [ + "nbc-team-leader", + "ctsc", + "ctsc-team-leader" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "systemGeneratedCaseDocuments", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + + + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "hearingDocuments", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "trialReadyDocuments", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "caseBundles", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentDisclosureList", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentForDisclosure", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentWitnessStatement", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentWitnessSummary", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentHearsayNotice", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentReferredInStatement", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentExpertReport", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentJointStatement", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentQuestions", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentAnswers", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentCaseSummary", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentSkeletonArgument", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentAuthorities", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentCosts", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentEvidenceForTrial", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentForDisclosureRes", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentDisclosureListRes", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentWitnessStatementRes", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentWitnessSummaryRes", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentHearsayNoticeRes", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentReferredInStatementRes", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentExpertReportRes", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentJointStatementRes", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentQuestionsRes", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentAnswersRes", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentCaseSummaryRes", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentSkeletonArgumentRes", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentAuthoritiesRes", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentCostsRes", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "documentEvidenceForTrialRes", + "AccessControl": [ + { + "UserRoles": [ + "cui-nbc-profile", + "cui-admin-profile" + ], + "CRUD": "CRU" + } + ] + } +] diff --git a/src/main/java/uk/gov/hmcts/reform/civil/HighLevelDataSetupApp.java b/src/main/java/uk/gov/hmcts/reform/civil/HighLevelDataSetupApp.java index 3dd50130a6..5d35fdc9e9 100644 --- a/src/main/java/uk/gov/hmcts/reform/civil/HighLevelDataSetupApp.java +++ b/src/main/java/uk/gov/hmcts/reform/civil/HighLevelDataSetupApp.java @@ -60,7 +60,10 @@ public class HighLevelDataSetupApp extends DataLoaderToDefinitionStore { new CcdRoleConfig("national-business-centre", "PUBLIC"), new CcdRoleConfig("hearing-centre-team-leader", "PUBLIC"), new CcdRoleConfig("next-hearing-date-admin", "PUBLIC"), - new CcdRoleConfig("court-officer-order", "PUBLIC") + new CcdRoleConfig("court-officer-order", "PUBLIC"), + new CcdRoleConfig("nbc-team-leader", "PUBLIC"), + new CcdRoleConfig("ctsc", "PUBLIC"), + new CcdRoleConfig("ctsc-team-leader", "PUBLIC") }; private final CcdEnvironment environment;