Skip to content

Commit

Permalink
feat(stores/permissions): gère le changement de dates d'audit/certifi…
Browse files Browse the repository at this point in the history
…cation
  • Loading branch information
thom4parisot committed May 22, 2024
1 parent 96bac37 commit 05a7c8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stores/permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -76,6 +78,8 @@ export const usePermissions = defineStore('permissions', () => {
canChangeConversionLevel,
canSaveAudit,
canSendAudit,
canChangeAuditDate,
canChangeCertificationDate,
canCertify,
$reset
}
Expand Down

0 comments on commit 05a7c8b

Please sign in to comment.