From d452838c0a414e2995985e0e9215f2e727fd225b Mon Sep 17 00:00:00 2001 From: marsalva Date: Wed, 25 Feb 2026 21:35:40 +0000 Subject: [PATCH] Actualizar calendario.html --- calendario.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendario.html b/calendario.html index f1fc9fa..04bdecd 100644 --- a/calendario.html +++ b/calendario.html @@ -281,7 +281,8 @@ } document.addEventListener("DOMContentLoaded", async () => { - if (!localStorage.getItem("token") || localStorage.getItem("role") !== 'operario') { + const currentRole = localStorage.getItem("role"); + if (!localStorage.getItem("token") || (currentRole !== 'operario' && currentRole !== 'operario_cerrado')) { window.location.href = "index.html"; return; } await applyTheme();