From 8eac733a5db89fe23d4002f64acf99049989d7a9 Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Mon, 15 Apr 2024 03:52:51 -0400 Subject: [PATCH] fix: we shouldn't return early if the env var isn't there --- app/utils/config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/utils/config.ts b/app/utils/config.ts index f1d67c4..28dc05c 100644 --- a/app/utils/config.ts +++ b/app/utils/config.ts @@ -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 }