Files
FEDEO/composables/usePermission.ts

10 lines
169 B
TypeScript

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