mirror of
https://github.com/Lissy93/dashy.git
synced 2024-11-27 10:26:00 +03:00
🚑 Adds null check to appConfig.auth
This commit is contained in:
parent
ee2f3305d5
commit
03abfd0ade
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user