@7365admin1/core 3.129.3-staging.667 → 3.129.3-staging.668
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
|
@@ -92,10 +92,15 @@ test("enrolling yourself needs reach; enrolling anybody else needs the Site acce
|
|
|
92
92
|
// ...and yourself only with a role you may give yourself (requireSelfEnrolRole)
|
|
93
93
|
// at a site you were invited to or reach (requireSelfEnrolSite, 2026-10-02);
|
|
94
94
|
// somebody else only as owner / staff / org-wide admin (2026-09-29).
|
|
95
|
-
/if \(isSameId\(userId, callerId\(req\)\)\)[\s\S]{0,160}await refuseStaffSelfJoin\(req, orgId\);[\s\S]{0,40}await requireOrgReach\(req, orgId\)[\s\S]{0,120}await requireSelfEnrolRole\(req, orgId, roleId\)[\s\S]{0,200}await requireSelfEnrolSite\(req, orgId, siteId\)[\s\S]{0,40}else[\s\S]{0,
|
|
95
|
+
/if \(isSameId\(userId, callerId\(req\)\)\)[\s\S]{0,160}await refuseStaffSelfJoin\(req, orgId\);[\s\S]{0,40}await requireOrgReach\(req, orgId\)[\s\S]{0,120}await requireSelfEnrolRole\(req, orgId, roleId\)[\s\S]{0,200}await requireSelfEnrolSite\(req, orgId, siteId\)[\s\S]{0,40}else[\s\S]{0,700}await requireMemberGrantor\(req, \{ orgId, targetUser: userId, roleId, siteId \}\)/,
|
|
96
96
|
);
|
|
97
97
|
});
|
|
98
98
|
|
|
99
|
+
test("the Seven365 support account is refused on the somebody-else road (owner 2026-11-17)", () => {
|
|
100
|
+
const body = fn(memberController, "createMemberDirect");
|
|
101
|
+
assert.match(body, /else \{[\s\S]{0,200}isSupportAccountEmail\(await userEmailById\(userId\)\)[\s\S]{0,80}SUPPORT_MEMBER_REFUSED[\s\S]{0,400}await requireMemberGrantor/);
|
|
102
|
+
});
|
|
103
|
+
|
|
99
104
|
test("the membership is authorised before it is written", () => {
|
|
100
105
|
const body = fn(memberController, "createMemberDirect");
|
|
101
106
|
assert.ok(
|