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>