瀏覽代碼

update docstring

Olivier Massot 1 年之前
父節點
當前提交
d8d014775a
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      middleware/routing.global.ts

+ 3 - 0
middleware/routing.global.ts

@@ -1,6 +1,9 @@
 import { useAbility } from '@casl/vue'
 import { useRedirect } from '~/composables/utils/useRedirect'
 
+/**
+ * Détermine les autorisations d'accès aux pages
+ */
 export default defineNuxtRouteMiddleware((to, _) => {
   const ability = useAbility()
   const candidates = to.matched.map((route) => route.name)