style: remove unnecessary inline comments

Removed Italian and redundant inline comments across multiple files.
This commit is contained in:
2026-06-16 18:30:40 +02:00 Unverified
parent 942143ddc7
commit f32fa8620b
8 changed files with 1 additions and 16 deletions
-3
View File
@@ -1,7 +1,6 @@
export default defineNuxtRouteMiddleware(async (to) => {
const auth = useAuth()
// Se c'è un token ma l'utente non è ancora caricato e non stiamo già sincronizzando, sincronizza
if ((auth.token.value || auth.tokenState.value) && !auth.user.value && !auth.isSyncingUser.value) {
try {
await auth.syncUser({ currentPath: to.path })
@@ -11,12 +10,10 @@ export default defineNuxtRouteMiddleware(async (to) => {
}
}
// Se non autenticato, redirige al login
if (!auth.isAuthenticated.value) {
return navigateTo('/auth/login')
}
// Verifica ruoli se richiesto
const requiredRole = to.meta.auth?.role
if (requiredRole && auth.user.value) {