fixed countdown page for not-logged in users

This commit is contained in:
Thaum Rystra
2020-05-07 15:50:44 +02:00
parent 3804323322
commit 82a2241e4d

View File

@@ -201,7 +201,7 @@ router.beforeEach((to, from, next) => {
if (
to.path === '/countdown' ||
to.path === '/sign-in' ||
(user.roles && user.roles.includes('admin'))
(user && user.roles && user.roles.includes('admin'))
){
next();
} else if (new Date() < LAUNCH_DATE){