feat: mirror v-can guard chains

This commit is contained in:
stanig2106
2025-11-14 19:23:18 +01:00
parent 2c4fe3f353
commit 7d823307fa
16 changed files with 573 additions and 138 deletions

View File

@@ -0,0 +1,6 @@
const granted = new Set<string>([])
export function __can__(...path: string[]) {
const key = path.join('.')
return granted.has(key)
}