ソースを参照

minor fix in AlertBar

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>