Files
FEDEO/frontend/composables/usePermission.ts
2026-01-06 12:09:31 +01:00

10 lines
169 B
TypeScript

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