Olivier Massot 2 роки тому
батько
коміт
6eaf134d77
1 змінених файлів з 1 додано та 3 видалено
  1. 1 3
      components/Layout/AlertBar.vue

+ 1 - 3
components/Layout/AlertBar.vue

@@ -11,7 +11,7 @@ Contient les différentes barres d'alertes qui s'affichent dans certains cas
     <LayoutAlertBarSwitchUser />
 
     <client-only>
-      <LayoutAlertBarCotisation v-if="organizationProfile.isCmf && canManageCotisation" />
+      <LayoutAlertBarCotisation v-if="organizationProfile.isCmf && ability.can('manage', 'cotisation')" />
     </client-only>
 
     <LayoutAlertBarSwitchYear />
@@ -25,6 +25,4 @@ Contient les différentes barres d'alertes qui s'affichent dans certains cas
 
   const organizationProfile = useOrganizationProfileStore()
   const ability = useAbility()
-
-  const canManageCotisation = ability.can('manage', 'cotisation')
 </script>