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