@7365admin1/layer-common 4.97.1-staging.692 → 4.97.1-staging.693
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.
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
</v-expansion-panel>
|
|
110
110
|
|
|
111
111
|
<!-- ANPR CAMERA -->
|
|
112
|
-
<v-expansion-panel v-if="showAnprCamera && canManageANPRCamera">
|
|
112
|
+
<v-expansion-panel v-if="showAnprCamera && canManageANPRCamera && anprModuleOn">
|
|
113
113
|
<v-expansion-panel-title>
|
|
114
114
|
<v-icon class="mr-2">mdi-camera</v-icon>
|
|
115
115
|
ANPR Camera
|
|
@@ -319,6 +319,7 @@ import useSiteSettings from "../composables/useSiteSettings";
|
|
|
319
319
|
import useUtils from "../composables/useUtils";
|
|
320
320
|
import useANPRSettings from "../composables/useANPRSettings";
|
|
321
321
|
import useVehicle from "../composables/useVehicle";
|
|
322
|
+
import { permissionsDenied } from "../utils/module-routes";
|
|
322
323
|
import { SERIAL_DEFAULT_DIGITS, SERIAL_PREFIX_PATTERN, cleanSerialPrefix, formatStickerSerial } from "../utils/vehicle-qr-blank";
|
|
323
324
|
|
|
324
325
|
const props = defineProps({
|
|
@@ -347,6 +348,9 @@ const { canManageSiteInformation,
|
|
|
347
348
|
canManageSiteSettings: canManageAnySiteSetting,
|
|
348
349
|
} = useSettingsPermission();
|
|
349
350
|
const { canManageHidSettings } = useHidAccessPermission();
|
|
351
|
+
// ANPR serves vehicles and visitors: hide the panel when the client has neither module (denied list, same as the menu gate).
|
|
352
|
+
const { userAppModulesDenied } = useLocalSetup();
|
|
353
|
+
const anprModuleOn = computed(() => !permissionsDenied(["vehicle-mgmt:x", "visitor-mgmt:x"], userAppModulesDenied?.value));
|
|
350
354
|
|
|
351
355
|
const { getSiteById, updateSitebyId, updateSiteInformation } =
|
|
352
356
|
useSiteSettings();
|
|
@@ -438,6 +438,14 @@ export default function usePropertyPermission() {
|
|
|
438
438
|
check: true,
|
|
439
439
|
description: "Allows the user to approve or reject incident report.",
|
|
440
440
|
},
|
|
441
|
+
"add-incident-report": {
|
|
442
|
+
check: true,
|
|
443
|
+
description: "Allows the user to add a new incident report.",
|
|
444
|
+
},
|
|
445
|
+
"update-incident-report": {
|
|
446
|
+
check: true,
|
|
447
|
+
description: "Allows the user to update an incident report.",
|
|
448
|
+
},
|
|
441
449
|
},
|
|
442
450
|
|
|
443
451
|
"vehicle-mgmt": {
|
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.693",
|
|
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.",
|