diff --git a/src/utils/Auth.js b/src/utils/Auth.js index 5e29008b..49cc5ae2 100644 --- a/src/utils/Auth.js +++ b/src/utils/Auth.js @@ -102,7 +102,7 @@ export const isGuestAccessEnabled = () => { printWarning(); return true; } - if (!Array.isArray(appConfig.auth)) { + if (appConfig.auth && !Array.isArray(appConfig.auth)) { return appConfig.auth.enableGuestAccess || false; } return false;