@7365admin1/core 3.52.12-staging.260 → 3.52.12
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,23 @@
|
|
|
1
1
|
# @iservice365/core
|
|
2
2
|
|
|
3
|
+
## 3.52.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 855d32b: Scope the building, unit and level lists to the caller's own sites
|
|
8
|
+
|
|
9
|
+
`GET /api/buildings`, `GET /api/building-units` and `GET /api/building-levels`
|
|
10
|
+
took an optional `site` and applied it as a plain filter, so a request that
|
|
11
|
+
named none was answered from the whole collection — every client's estate. An
|
|
12
|
+
explicit site was never authorised either. `GET /api/building-units/site/:site`,
|
|
13
|
+
which returns units together with their owners, took the site from the URL and
|
|
14
|
+
checked nothing.
|
|
15
|
+
|
|
16
|
+
All four now use the same rule the vehicle, visitor, document and camera lists
|
|
17
|
+
use: an explicit site goes through `requireSiteReach`, and no site falls back to
|
|
18
|
+
`entitledSites`. The restriction is part of the Redis cache key as well as the
|
|
19
|
+
query, so one caller's page is not served to another.
|
|
20
|
+
|
|
3
21
|
## 3.52.11
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -52460,7 +52460,7 @@ function useVisitorTransactionService() {
|
|
|
52460
52460
|
unitName: unit?.name,
|
|
52461
52461
|
org: inviter?.org?.toString(),
|
|
52462
52462
|
site: inviter?.site.toString(),
|
|
52463
|
-
status: value?.type === "contractor" ? isAutoApprovedInvitation ? "approved" /* APPROVED */ : "pending" /* PENDING */ : "
|
|
52463
|
+
status: value?.type === "contractor" ? isAutoApprovedInvitation ? "approved" /* APPROVED */ : "pending" /* PENDING */ : "pending" /* PENDING */,
|
|
52464
52464
|
inviterId: userId
|
|
52465
52465
|
};
|
|
52466
52466
|
const leadId = new import_mongodb86.ObjectId();
|