fix: we shouldn't return early if the env var isn't there

This commit is contained in:
Aarnav Tale 2024-04-15 03:52:51 -04:00
parent 89a7cb5aae
commit 8eac733a5d
No known key found for this signature in database

View File

@ -299,8 +299,6 @@ async function hasAcl() {
const config = await getConfig()
path = config.acl_policy_path
} catch {}
return false
}
if (!path) {
@ -311,7 +309,9 @@ async function hasAcl() {
path = resolve(path)
await access(path, constants.R_OK)
return true
} catch {}
} catch (error) {
console.log('Cannot acquire read access to ACL file', error)
}
return false
}