@7365admin1/core 3.52.10-staging.258 → 3.52.10
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
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @iservice365/core
|
|
2
2
|
|
|
3
|
+
## 3.52.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8a120d0: Scope `GET /api/vehicles` and `GET /api/vehicles/blocklisted` to the caller's own sites when the request names no site. Both endpoints applied a site predicate only when `site` was supplied, so omitting it answered from the whole collection. The scope is `entitledSiteScope`, `cameraGrant` asked as a list, so an organisation-level role still sees its whole organisation and a site-level role sees only its own site. An explicitly supplied site is still authorised as before.
|
|
8
|
+
|
|
3
9
|
## 3.52.9
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -52400,7 +52400,7 @@ function useVisitorTransactionService() {
|
|
|
52400
52400
|
unitName: unit?.name,
|
|
52401
52401
|
org: inviter?.org?.toString(),
|
|
52402
52402
|
site: inviter?.site.toString(),
|
|
52403
|
-
status: value?.type === "contractor" ? isAutoApprovedInvitation ? "approved" /* APPROVED */ : "pending" /* PENDING */ : "
|
|
52403
|
+
status: value?.type === "contractor" ? isAutoApprovedInvitation ? "approved" /* APPROVED */ : "pending" /* PENDING */ : "pending" /* PENDING */,
|
|
52404
52404
|
inviterId: userId
|
|
52405
52405
|
};
|
|
52406
52406
|
const leadId = new import_mongodb86.ObjectId();
|