diff --git a/frontend/src/routes/guards.js b/frontend/src/routes/guards.js index 791978352..eebd6976e 100644 --- a/frontend/src/routes/guards.js +++ b/frontend/src/routes/guards.js @@ -6,6 +6,7 @@ const addNavigationGuards = (router, store) => { store.commit('publisherId', publisherId) delete to.query.pid } + // handle authentication if (to.meta.requiresAuth && !store.state.token) { next({ path: '/login' }) } else {