@ministryofjustice/hmpps-prison-permissions-lib 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Please use this to capture reasoning behind changes:
|
|
4
4
|
|
|
5
|
+
## 0.4.0
|
|
6
|
+
|
|
7
|
+
Access period for users with both the `POM` and `GLOBAL_SEARCH` roles to access prisoner case notes after a transfer extended from 30 to 90 days.
|
|
8
|
+
|
|
5
9
|
## 0.3.0
|
|
6
10
|
|
|
7
11
|
Official release for updates to the Case Notes and Religion permissions.
|
package/dist/index.cjs
CHANGED
|
@@ -528,7 +528,7 @@ function isDateWithinBounds(dateToCheckInMs, upperDateBoundInMs, lowerDateBoundI
|
|
|
528
528
|
return dateToCheckInMs <= upperDateBoundInMs && lowerDateBoundInMs <= dateToCheckInMs;
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
-
const caseNotesAccessPeriodPostTransferInMs = daysToMilliseconds(
|
|
531
|
+
const caseNotesAccessPeriodPostTransferInMs = daysToMilliseconds(90);
|
|
532
532
|
function caseNotesReadAndEditCheck(permission, request) {
|
|
533
533
|
const baseCheckPassed = request.baseCheckStatus === exports.PermissionCheckStatus.OK;
|
|
534
534
|
const caseNotesCheckStatus = checkCaseNotesAccess(request);
|