Actualizar calendario.html

This commit is contained in:
2026-02-25 21:35:40 +00:00
parent 94278924a5
commit d452838c0a

View File

@@ -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();