@7365admin1/core 3.139.0 → 3.139.1
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/package.json
CHANGED
|
@@ -574,6 +574,24 @@ describe("SP invitation: email status, Super Admin alert, new company typed by s
|
|
|
574
574
|
assert.deepEqual(sites.body.items.map((x) => String(x.site)), [site.toString()]);
|
|
575
575
|
});
|
|
576
576
|
|
|
577
|
+
it("E1b. SECURITY: an inactive (repaired) membership reaches NOTHING in the sender - no members, roles, sites", async () => {
|
|
578
|
+
const { sid, orgId } = await latitudeShape("latitude-reach@e2e.example.com");
|
|
579
|
+
const jll = id.pmOrg.toString();
|
|
580
|
+
for (const path of [
|
|
581
|
+
`/members?org=${jll}&type=property_management_agency&status=active&limit=5`,
|
|
582
|
+
`/members?org=${jll}&type=organization&status=active&limit=5`,
|
|
583
|
+
`/roles?org=${jll}&limit=5`,
|
|
584
|
+
`/sites?org=${jll}&limit=5`,
|
|
585
|
+
`/customer-sites?org=${jll}&status=active&limit=5`,
|
|
586
|
+
]) {
|
|
587
|
+
const res = await h.api(path, { sid });
|
|
588
|
+
assert.ok([401, 403].includes(res.status), `${path} -> ${res.status} ${JSON.stringify(res.body).slice(0, 200)}`);
|
|
589
|
+
}
|
|
590
|
+
// its own company still works
|
|
591
|
+
const own = await h.api(`/members?org=${orgId}&type=organization&status=active&limit=5`, { sid });
|
|
592
|
+
assert.equal(own.status, 200, JSON.stringify(own.body));
|
|
593
|
+
});
|
|
594
|
+
|
|
577
595
|
it("E2. Repair on an already-repaired account retires the leftover full-access role only while nobody uses it; Undo restores it", async () => {
|
|
578
596
|
const { inviteId, spRole, user } = await latitudeShape("latitude-role@e2e.example.com");
|
|
579
597
|
const preview = await h.api(`/service-provider-invitations/${inviteId}/wrong-join`, { sid: adminSid });
|