From 05a7c8bf41a923897b6887b08334bf3c67e01375 Mon Sep 17 00:00:00 2001 From: Thomas Parisot Date: Wed, 22 May 2024 14:28:22 +0200 Subject: [PATCH] =?UTF-8?q?feat(stores/permissions):=20g=C3=A8re=20le=20ch?= =?UTF-8?q?angement=20de=20dates=20d'audit/certification?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/permissions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stores/permissions.js b/src/stores/permissions.js index 9c385be8..f5e9e69b 100644 --- a/src/stores/permissions.js +++ b/src/stores/permissions.js @@ -52,6 +52,8 @@ export const usePermissions = defineStore('permissions', () => { const canSaveAudit = computed(() => Boolean(userStore.isOcAudit)) const canSendAudit = computed(() => Boolean(userStore.isOcAudit)) const canCertify = computed(() => Boolean(userStore.isOcCertif)) + const canChangeAuditDate = isOc + const canChangeCertificationDate = computed(() => Boolean(userStore.isOcCertif)) const canAddAnnotations = isOc const canViewAnnotations = isOc const canExportAnnotations = isOc @@ -76,6 +78,8 @@ export const usePermissions = defineStore('permissions', () => { canChangeConversionLevel, canSaveAudit, canSendAudit, + canChangeAuditDate, + canChangeCertificationDate, canCertify, $reset }