@7365admin1/layer-common 4.2.26 → 4.2.27
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 +12 -4
- package/components/InvitationClientForm.vue +15 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 4.2.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 21cddf9: Invite Client: stop offering Seven365 console staff roles on a client invitation.
|
|
8
|
+
|
|
9
|
+
The console's Invite Client picker lists the org-less roles, which includes the platform's own `type: "admin"` staff roles. The App field on that form only offers the seven service types, so the server (`core invite-role-scope.util roleInvitable`) refuses a staff role on every invitation the form can send — two of the twelve options could only ever be picked and then fail. They are now hidden. Display only: the request is unchanged and every role the server accepts is still offered.
|
|
10
|
+
|
|
3
11
|
## 4.2.26
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -793,11 +801,11 @@
|
|
|
793
801
|
`utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
|
|
794
802
|
own rule from two endpoints the console already calls, unprojected:
|
|
795
803
|
|
|
796
|
-
|
|
797
|
-
|
|
804
|
+
GET /api/members/user/:user/app/admin the Seven365 staff membership
|
|
805
|
+
GET /api/roles/id/:role that membership's role document
|
|
798
806
|
|
|
799
|
-
|
|
800
|
-
|
|
807
|
+
owner = member.type === "admin" && role.type === "admin" && role.default === true
|
|
808
|
+
staff = member.type === "admin" && role.type === "admin"
|
|
801
809
|
|
|
802
810
|
`role.default` is the marker because it is the only property of a platform
|
|
803
811
|
staff role no API caller can set - `role.controller.ts` validates create and
|
|
@@ -258,7 +258,21 @@ const { data: roleData, refresh: refreshRoles } = await useLazyAsyncData(
|
|
|
258
258
|
)
|
|
259
259
|
|
|
260
260
|
watchEffect(() => {
|
|
261
|
-
|
|
261
|
+
/*
|
|
262
|
+
* The App field above offers the seven service types and never the Seven365
|
|
263
|
+
* staff type (`APP_LIST`), so every invitation this screen can send is a
|
|
264
|
+
* non-staff one -- and `core invite-role-scope.util roleInvitable` refuses a
|
|
265
|
+
* `type: "admin"` role on any of those, without exception. The request that
|
|
266
|
+
* fills this list goes out as `org: "", type: ""`, which is the ORG-LESS set:
|
|
267
|
+
* on staging that is 12 roles, 2 of them `type: "admin"`. So 2 of the 12
|
|
268
|
+
* options could only ever be picked and then refused.
|
|
269
|
+
*
|
|
270
|
+
* Display only. The server's decision is unchanged, and nothing this form can
|
|
271
|
+
* successfully send is removed -- the 10 `type: "organization"` templates,
|
|
272
|
+
* including "Org Owner" (117 live members, 321 invitations), all stay.
|
|
273
|
+
*/
|
|
274
|
+
if (roleData.value)
|
|
275
|
+
roles.value = roleData.value.items.filter((r: any) => r?.type !== 'admin')
|
|
262
276
|
})
|
|
263
277
|
|
|
264
278
|
watch(
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.2.
|
|
5
|
+
"version": "4.2.27",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|