Merge branch 'master' of github.com:Lissy93/dashy into FEATURE/minimal-view

This commit is contained in:
Alicia Sykes
2021-08-06 20:48:59 +01:00
103 changed files with 3706 additions and 2372 deletions

View File

@@ -12,9 +12,14 @@ import { metaTagData } from '@/utils/defaults';
Vue.use(Router);
/**
* Checks if the current user is either authenticated,
* or if authentication is not enabled
* @returns true if user logged in, or user management not enabled
*/
const isAuthenticated = () => {
const users = config.appConfig.auth;
return (!users || isLoggedIn(users));
return (!users || users.length === 0 || isLoggedIn(users));
};
const router = new Router({