🚑 Adds null check to appConfig.auth
This commit is contained in:
@@ -102,7 +102,7 @@ export const isGuestAccessEnabled = () => {
|
|||||||
printWarning();
|
printWarning();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (!Array.isArray(appConfig.auth)) {
|
if (appConfig.auth && !Array.isArray(appConfig.auth)) {
|
||||||
return appConfig.auth.enableGuestAccess || false;
|
return appConfig.auth.enableGuestAccess || false;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user