From a25ab433a6963fb0ddfcc214512b87ad1d184a83 Mon Sep 17 00:00:00 2001 From: Robert Bond Date: Tue, 28 Apr 2026 12:00:12 +0000 Subject: [PATCH] Merged PR 2279: passed in case customer email in search and update rep logic to stop non owne... passed in case customer email in search and update rep logic to stop non owners rasing reps on other owners cases Related work items: #22095 --- components/case/representation/index.js | 9 +++++++-- components/representation.js | 6 ++++++ pages/api/endpoint/getbasicsearch_api.js | 2 +- pages/myportal/case/[ticketnumber].js | 3 +++ 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/components/case/representation/index.js b/components/case/representation/index.js index 6261154d..32609c1a 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -253,9 +253,14 @@ let MakeRepresentation = (props) => { var detailsObj = {}; + // const isAppellant = + // props.props.accountDetails.accountDetails.pinswg_typeofinvolvement === + // 846040001; + const isAppellant = - props.props.accountDetails.accountDetails.pinswg_typeofinvolvement === - 846040001; + props.props.accountDetails.accountDetails.emailaddress1 == + props.searchResultsObj?.searchResultsObj?.value[0].customerid_contact + .emailaddress1; const capacityOptionsArr = []; diff --git a/components/representation.js b/components/representation.js index da9f4232..0c778eb9 100644 --- a/components/representation.js +++ b/components/representation.js @@ -17,6 +17,12 @@ const CaseRepresentation = (props) => {