From aeed3eb786004399cc8aece00b69a980bfa3e46b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0j=C3=B3n=20Gu=C3=B0j=C3=B3nsson?= Date: Mon, 21 Oct 2024 11:30:52 +0000 Subject: [PATCH] Fixes FMST access to R-cases --- .../app/modules/case/filters/case.filter.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/judicial-system/backend/src/app/modules/case/filters/case.filter.ts b/apps/judicial-system/backend/src/app/modules/case/filters/case.filter.ts index 36a406f4badb..110e22c09bdf 100644 --- a/apps/judicial-system/backend/src/app/modules/case/filters/case.filter.ts +++ b/apps/judicial-system/backend/src/app/modules/case/filters/case.filter.ts @@ -289,19 +289,19 @@ const canPrisonAdminUserAccessCase = ( ) { return false } - } - // Check defendant verdict appeal deadline access - const canAppealVerdict = true - const verdictInfo = (theCase.defendants || []).map< - [boolean, Date | undefined] - >((defendant) => [canAppealVerdict, defendant.verdictViewDate]) + // Check defendant verdict appeal deadline access + const canAppealVerdict = true + const verdictInfo = (theCase.defendants || []).map< + [boolean, Date | undefined] + >((defendant) => [canAppealVerdict, defendant.verdictViewDate]) - const [_, indictmentVerdictAppealDeadlineExpired] = - getIndictmentVerdictAppealDeadlineStatus(verdictInfo) + const [_, indictmentVerdictAppealDeadlineExpired] = + getIndictmentVerdictAppealDeadlineStatus(verdictInfo) - if (!indictmentVerdictAppealDeadlineExpired) { - return false + if (!indictmentVerdictAppealDeadlineExpired) { + return false + } } return true