Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:ambulance: Adds null check to appConfig.auth

Alicia Sykes03abfd0ade00
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;