feat: add directive transformer runtime

This commit is contained in:
stanig2106
2025-11-14 05:22:46 +01:00
parent 0c19594823
commit 534bc39197
16 changed files with 506 additions and 37 deletions

View File

@@ -0,0 +1,12 @@
export function __can__(path: string[]) {
const key = path.join('.')
const allowed = new Set([
'employee.view',
'employee.edit',
'contract.create',
])
// return allowed.has(key)
console.log('Checking permission:', key)
return false
}