|
|
@ -26,7 +26,7 @@ export default defineNuxtRouteMiddleware((to, from) => { |
|
|
|
/** if shred base allow without validating */ |
|
|
|
/** if shred base allow without validating */ |
|
|
|
if (to.params?.projectType === 'base') return |
|
|
|
if (to.params?.projectType === 'base') return |
|
|
|
|
|
|
|
|
|
|
|
if (to.meta.isSharedView) return |
|
|
|
if (to.meta.public) return |
|
|
|
|
|
|
|
|
|
|
|
/** if auth is required or unspecified (same as required) and user is not signed in, redirect to signin page */ |
|
|
|
/** if auth is required or unspecified (same as required) and user is not signed in, redirect to signin page */ |
|
|
|
if ((to.meta.requiresAuth || typeof to.meta.requiresAuth === 'undefined') && !state.signedIn.value) { |
|
|
|
if ((to.meta.requiresAuth || typeof to.meta.requiresAuth === 'undefined') && !state.signedIn.value) { |
|
|
|