@7365admin1/layer-common 4.97.1-staging.565 → 4.97.1-staging.566
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.
|
@@ -99,10 +99,12 @@ export function useHidAccessPermission() {
|
|
|
99
99
|
const { userAppRole, userAppModulesDenied } = useLocalSetup();
|
|
100
100
|
|
|
101
101
|
// `hasPermission` needs BOTH the role's string AND a catalogue entry for it.
|
|
102
|
-
// The property and security catalogues carry `hid-mgmt`, the
|
|
103
|
-
// catalogues
|
|
104
|
-
//
|
|
105
|
-
//
|
|
102
|
+
// The property and security catalogues carry `hid-mgmt`, the five service
|
|
103
|
+
// catalogues (cleaning, landscaping, pest control, pool maintenance and,
|
|
104
|
+
// since 2026-10-19, M&E) carry only `use-hid-access`, and no catalogue
|
|
105
|
+
// offers the retired `view` and `manage-hid` any more, so the lookup table
|
|
106
|
+
// is built here: these flags must answer the same in every app that mounts
|
|
107
|
+
// a HID screen.
|
|
106
108
|
const permissions: TPermissions = {
|
|
107
109
|
"hid-mgmt": Object.fromEntries(
|
|
108
110
|
HID_ACTIONS.map((action) => [action, { check: true, description: `HID: ${action}.` }]),
|
|
@@ -51,6 +51,11 @@ export default function useMechanicalElectricalPermission() {
|
|
|
51
51
|
"area-mgmt": schedulePermissions["area-mgmt"],
|
|
52
52
|
"unit-mgmt": schedulePermissions["unit-mgmt"],
|
|
53
53
|
"site-settings": schedulePermissions["site-settings"],
|
|
54
|
+
// HID access, user side only (2026-10-19): the M&E mobile app gains the
|
|
55
|
+
// HID user side, so an M&E role must be able to hold `use-hid-access`.
|
|
56
|
+
// Taken from the cleaning catalogue like the keys above (one action, same
|
|
57
|
+
// description), so the two cannot drift. Catalogue-only: grants nothing.
|
|
58
|
+
"hid-mgmt": schedulePermissions["hid-mgmt"],
|
|
54
59
|
"cleaning-schedule-mgmt": schedulePermissions["cleaning-schedule-mgmt"],
|
|
55
60
|
"schedule-task-mgmt": schedulePermissions["schedule-task-mgmt"],
|
|
56
61
|
"attendance-mgmt": schedulePermissions["attendance-mgmt"],
|
package/constants/permissions.ts
CHANGED
|
@@ -714,11 +714,11 @@ export const SERVER_ONLY_UNGRANTABLE: readonly string[] = Object.freeze([
|
|
|
714
714
|
* `:assign-access-card` and `:manage-hid`, which the HID menu accepted and
|
|
715
715
|
* `core/src/utils/hid-access.util.ts` enforced while no app's catalogue offered
|
|
716
716
|
* them. HID now has its own `hid-mgmt` family, offered in full by the property
|
|
717
|
-
* and security catalogues and as `use-hid-access` by the
|
|
718
|
-
* catalogues; `assign-access-card` is offered by
|
|
719
|
-
* and `manage-hid` are retired (below). Kept,
|
|
720
|
-
* test, so the next string of this shape is
|
|
721
|
-
* by somebody staring at a blank screen.
|
|
717
|
+
* and security catalogues and as `use-hid-access` by the five service
|
|
718
|
+
* catalogues (M&E joined on 2026-10-19); `assign-access-card` is offered by
|
|
719
|
+
* both card catalogues; `view` and `manage-hid` are retired (below). Kept,
|
|
720
|
+
* and still pinned by the drift test, so the next string of this shape is
|
|
721
|
+
* recorded here rather than found by somebody staring at a blank screen.
|
|
722
722
|
*/
|
|
723
723
|
export const CHECKED_BUT_UNGRANTABLE: readonly TPermissionString[] =
|
|
724
724
|
Object.freeze([]);
|
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.97.1-staging.
|
|
5
|
+
"version": "4.97.1-staging.566",
|
|
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.",
|