Skip to content

Commit

Permalink
Give caseworkers access to event history for regen D8 and update finr…
Browse files Browse the repository at this point in the history
…em (#3984)
  • Loading branch information
adamg-hmcts authored Sep 3, 2024
1 parent 0a5146a commit 3c1bc16
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import static uk.gov.hmcts.divorce.common.event.RegenerateApplication.REGENERATE_APPLICATION;
import static uk.gov.hmcts.divorce.divorcecase.model.FinancialOrderFor.APPLICANT;
import static uk.gov.hmcts.divorce.divorcecase.model.FinancialOrderFor.CHILDREN;
import static uk.gov.hmcts.divorce.divorcecase.model.UserRole.CASE_WORKER;
import static uk.gov.hmcts.divorce.divorcecase.model.UserRole.JUDGE;
import static uk.gov.hmcts.divorce.divorcecase.model.UserRole.LEGAL_ADVISOR;
import static uk.gov.hmcts.divorce.divorcecase.model.UserRole.SUPER_USER;
Expand Down Expand Up @@ -68,12 +69,8 @@ public void configure(final ConfigBuilder<CaseData, State, UserRole> configBuild
.description("Update FinRem and Jurisdiction")
.showSummary()
.showEventNotes()
.grant(CREATE_READ_UPDATE,
SUPER_USER)
.grantHistoryOnly(
SUPER_USER,
LEGAL_ADVISOR,
JUDGE)
.grant(CREATE_READ_UPDATE, SUPER_USER)
.grantHistoryOnly(CASE_WORKER, LEGAL_ADVISOR, JUDGE)
.aboutToSubmitCallback(this::midEvent)
.submittedCallback(this::submitted))
.page("updateFinRemAndJurisdiction")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import static uk.gov.hmcts.divorce.common.event.RegenerateApplication.REGENERATE_APPLICATION;
import static uk.gov.hmcts.divorce.divorcecase.model.FinancialOrderFor.APPLICANT;
import static uk.gov.hmcts.divorce.divorcecase.model.FinancialOrderFor.CHILDREN;
import static uk.gov.hmcts.divorce.divorcecase.model.UserRole.CASE_WORKER;
import static uk.gov.hmcts.divorce.divorcecase.model.UserRole.JUDGE;
import static uk.gov.hmcts.divorce.divorcecase.model.UserRole.LEGAL_ADVISOR;
import static uk.gov.hmcts.divorce.divorcecase.model.UserRole.SUPER_USER;
Expand Down Expand Up @@ -83,10 +84,7 @@ public void configure(final ConfigBuilder<CaseData, State, UserRole> configBuild
.showEventNotes()
.grant(CREATE_READ_UPDATE,
SUPER_USER)
.grantHistoryOnly(
SUPER_USER,
LEGAL_ADVISOR,
JUDGE)
.grantHistoryOnly(CASE_WORKER, LEGAL_ADVISOR, JUDGE)
.aboutToSubmitCallback(this::midEvent)
.submittedCallback(this::submitted))
.page("updateFinRemAndJurisdiction")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import uk.gov.hmcts.divorce.divorcecase.model.State;
import uk.gov.hmcts.divorce.divorcecase.model.UserRole;

import static uk.gov.hmcts.divorce.divorcecase.model.UserRole.CASE_WORKER;
import static uk.gov.hmcts.divorce.divorcecase.model.UserRole.CREATOR;
import static uk.gov.hmcts.divorce.divorcecase.model.UserRole.JUDGE;
import static uk.gov.hmcts.divorce.divorcecase.model.UserRole.LEGAL_ADVISOR;
Expand All @@ -37,7 +38,7 @@ public void configure(final ConfigBuilder<CaseData, State, UserRole> configBuild
.name("Regenerate D8")
.description("Regenerate D8")
.grant(CREATE_READ_UPDATE, CREATOR, SYSTEMUPDATE)
.grantHistoryOnly(LEGAL_ADVISOR, SUPER_USER, JUDGE)
.grantHistoryOnly(LEGAL_ADVISOR, SUPER_USER, JUDGE, CASE_WORKER)
.retries(120, 120)
.aboutToSubmitCallback(this::aboutToSubmit);
}
Expand Down

0 comments on commit 3c1bc16

Please sign in to comment.