Files
FEDEO/composables/usePermission.ts
2025-08-31 18:28:59 +02:00

9 lines
168 B
TypeScript

export function usePermission() {
const auth = useAuthStore()
const has = (key: string) => {
return auth.hasPermission(key)
}
return { has }
}