mirror of
https://github.com/tale/headplane.git
synced 2026-08-28 16:07:07 +00:00
fix: omg why do i forget these things here
This commit is contained in:
+3
-3
@@ -323,8 +323,6 @@ async function hasAclW() {
|
|||||||
const config = await getConfig()
|
const config = await getConfig()
|
||||||
path = config.acl_policy_path
|
path = config.acl_policy_path
|
||||||
} catch {}
|
} catch {}
|
||||||
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!path) {
|
if (!path) {
|
||||||
@@ -335,7 +333,9 @@ async function hasAclW() {
|
|||||||
path = resolve(path)
|
path = resolve(path)
|
||||||
await access(path, constants.W_OK)
|
await access(path, constants.W_OK)
|
||||||
return true
|
return true
|
||||||
} catch {}
|
} catch (error) {
|
||||||
|
console.log('Cannot acquire read access to ACL file', error)
|
||||||
|
}
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user