mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 15:58:14 +00:00
fix: acl path needs to be resolved
This commit is contained in:
@@ -212,6 +212,7 @@ async function hasAcl() {
|
||||
}
|
||||
|
||||
try {
|
||||
path = resolve(path)
|
||||
await access(path, constants.R_OK)
|
||||
return true
|
||||
} catch {}
|
||||
@@ -235,6 +236,7 @@ async function hasAclW() {
|
||||
}
|
||||
|
||||
try {
|
||||
path = resolve(path)
|
||||
await access(path, constants.W_OK)
|
||||
return true
|
||||
} catch {}
|
||||
|
||||
Reference in New Issue
Block a user