bugfix(router): corregido el nombre del rol para reconocerlo

parent 62193ef5
Showing with 1 additions and 1 deletions
......@@ -74,7 +74,7 @@ router.beforeEach((to, from, next) => {
if (requiresAuth && !authStore.isAuthenticated) {
next({ path: '/auth/login' });
} else if (requiresAdmin && authStore.user?.role != 'Admin') {
} else if (requiresAdmin && authStore.user?.role != 'ADMIN') {
next({ path: '/recipes' });
} else {
next();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment