@7365admin1/core 3.99.1-staging.386 → 3.99.1-staging.387
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/.changeset/assign-role-owner-guard.md +5 -0
- package/dist/index.js +1138 -1052
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1135 -1049
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/test/e2e/assign-role-owner.e2e.test.mjs +149 -0
- package/test/e2e/harness.mjs +1 -0
- package/test/member-role-assign.test.mjs +68 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
---
|
|
2
|
+
"@7365admin1/core": minor
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Assign Role works for every organisation: the "last owner" check runs only when demoting a member who holds an owner ("*") role, instead of refusing every change with "No owner role found." when the organisation stores no owner role of that app. The assigned role must be the organisation's own active role for the member's site (or org-wide); the caller needs `members:assign-member-role` (or "*", or is the org owner / Seven365 staff). Member list rows carry `roleState` (ok / template / deleted / other-org / missing).
|