@7365admin1/layer-common 4.4.1-staging.287 → 4.4.1-staging.289

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.
@@ -456,6 +456,56 @@ export default function usePropertyPermission() {
456
456
  },
457
457
  },
458
458
 
459
+ /*
460
+ * SEEING THE CAMERAS — enforced by the server and by this app, grantable by
461
+ * nobody until now.
462
+ *
463
+ * `web-app-property-management composables/useCameraViewPermission.ts` opens
464
+ * the camera wall for a role holding ANY of these four, mirroring
465
+ * `CAMERA_VIEW_PERMISSIONS` in `@7365admin1/core`, which is what
466
+ * `GET /api/site-cameras/site/:siteId/wall` actually runs `authorizeSite`
467
+ * against. This catalogue — the one the property role editor is handed —
468
+ * carried no `virtual-patrol` family at all. So a property administrator
469
+ * could not grant camera viewing to anybody, and the only people who saw a
470
+ * camera were the ones holding the `*` wildcard.
471
+ *
472
+ * ⚠ THE `virtual-patrol:` PREFIX IS A LEGACY ARTEFACT and is kept verbatim.
473
+ * The wall was born inside Virtual Patrol in the Security application.
474
+ * Production permission spelling is never "corrected" from this side: a
475
+ * purpose-named camera-viewing right is a backend and provisioning change,
476
+ * and inventing one here would create a fifth vocabulary that no server
477
+ * checks. These are the strings the server reads, spelled its way.
478
+ *
479
+ * Exactly the four the gate reads, and no more. `start-virtual-patrol-route`
480
+ * is also enforced in `core` but nothing in this application asks for it,
481
+ * and the rest of the Security app's fifteen-action family belongs to
482
+ * Virtual Patrol proper, which property does not run.
483
+ *
484
+ * Catalogue-only: this widens what may be OFFERED and grants nothing. An
485
+ * unticked action stays refused, exactly as today.
486
+ */
487
+ "virtual-patrol": {
488
+ "see-all-virtual-patrols": {
489
+ check: true,
490
+ description:
491
+ "Allows the user to view the site's cameras. (Legacy name — this is the camera wall.)",
492
+ },
493
+ "see-all-virtual-patrol-route": {
494
+ check: true,
495
+ description:
496
+ "Allows the user to view the site's cameras. (Legacy name — this is the camera wall.)",
497
+ },
498
+ "see-all-virtual-patrol-logs": {
499
+ check: true,
500
+ description:
501
+ "Allows the user to view the site's cameras. (Legacy name — this is the camera wall.)",
502
+ },
503
+ "see-all-virtual-patrol-question": {
504
+ check: true,
505
+ description:
506
+ "Allows the user to view the site's cameras. (Legacy name — this is the camera wall.)",
507
+ },
508
+ },
459
509
  "nfc-patrol": {
460
510
  "see-all-nfc-patrol": {
461
511
  check: true,
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.4.1-staging.287",
5
+ "version": "4.4.1-staging.289",
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.",