🚑 Adds null check to appConfig.auth

This commit is contained in:
Alicia Sykes 2021-08-21 22:57:12 +01:00
parent ee2f3305d5
commit 03abfd0ade
1 changed files with 1 additions and 1 deletions

View File

@ -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;