@7365admin1/layer-common 4.2.11 → 4.2.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,11 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 4.2.12
4
+
5
+ ### Patch Changes
6
+
7
+ - 15e187e: Send the site with the role list request, so a site's roles-and-permissions screen shows its own roles instead of every other estate's.
8
+
3
9
  ## 4.2.11
4
10
 
5
11
  ### Patch Changes
@@ -574,11 +580,11 @@
574
580
  `utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
575
581
  own rule from two endpoints the console already calls, unprojected:
576
582
 
577
- GET /api/members/user/:user/app/admin the Seven365 staff membership
578
- GET /api/roles/id/:role that membership's role document
583
+ GET /api/members/user/:user/app/admin the Seven365 staff membership
584
+ GET /api/roles/id/:role that membership's role document
579
585
 
580
- owner = member.type === "admin" && role.type === "admin" && role.default === true
581
- staff = member.type === "admin" && role.type === "admin"
586
+ owner = member.type === "admin" && role.type === "admin" && role.default === true
587
+ staff = member.type === "admin" && role.type === "admin"
582
588
 
583
589
  `role.default` is the marker because it is the only property of a platform
584
590
  staff role no API caller can set - `role.controller.ts` validates create and
@@ -297,6 +297,7 @@ const {
297
297
  search: headerSearch.value,
298
298
  type: props.type,
299
299
  org: props.orgId,
300
+ site: props.siteId,
300
301
  }),
301
302
  {
302
303
  watch: [page, headerSearch],
@@ -23,10 +23,11 @@ export default function useRole() {
23
23
  limit = 20,
24
24
  type = "",
25
25
  org = "",
26
+ site = "",
26
27
  } = {}) {
27
28
  return useNuxtApp().$api<Record<string, any>>("/api/roles", {
28
29
  method: "GET",
29
- query: { search, page, limit, type, org },
30
+ query: { search, page, limit, type, org, site },
30
31
  });
31
32
  }
32
33
 
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.11",
5
+ "version": "4.2.12",
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.",