More auth / role checks for navlinks

This commit is contained in:
2024-05-23 09:55:02 -04:00
parent c03ad48615
commit b0d6ec877b
4 changed files with 58 additions and 24 deletions

View File

@@ -55,7 +55,7 @@ export default route(function (/* { store, ssrContext } */) {
}
try {
const hasRole = await authStore.hasRequiredRole(requiredRoles);
const hasRole = authStore.hasRequiredRole(requiredRoles);
if (!hasRole) {
return next(from);
}