Refactor, no longer need parameter passed to Auth functions

This commit is contained in:
Alicia Sykes
2021-08-20 21:51:43 +01:00
parent d54bb517db
commit b71e1548ee
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ const isGuestEnabled = () => {
/* Returns true if user is already authenticated, or if auth is not enabled */
const isAuthenticated = () => {
const users = config.appConfig.auth;
return (!users || users.length === 0 || isLoggedIn(users) || isGuestEnabled());
return (!users || users.length === 0 || isLoggedIn() || isGuestEnabled());
};
/* Get the users chosen starting view from app config, or return default */