feat: mirror v-can guard chains
This commit is contained in:
6
test/fixtures/chains/permissions/__can__.ts
vendored
Normal file
6
test/fixtures/chains/permissions/__can__.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
const granted = new Set<string>([])
|
||||
|
||||
export function __can__(...path: string[]) {
|
||||
const key = path.join('.')
|
||||
return granted.has(key)
|
||||
}
|
||||
Reference in New Issue
Block a user