fix(login): bacteriologo redirige a lugar en vez de recepcion al iniciar sesion

This commit is contained in:
Lizandro Guarnizo
2026-07-27 07:08:15 -05:00
parent 6192ef89a1
commit 8dadf0ba7a
+5 -1
View File
@@ -89,7 +89,11 @@ if ($_POST && !$loginBlocked) {
if ($roleSlug === 'enfermero') {
header('Location: enfermero_portal.php');
} elseif (in_array('turnero', $modules, true)) {
header('Location: erp.php?m=turnero&v=recepcion');
if ($roleSlug === 'bacteriologo') {
header('Location: erp.php?m=turnero');
} else {
header('Location: erp.php?m=turnero&v=recepcion');
}
} elseif (in_array('lab_dashboard', $modules, true)) {
header('Location: lab_dashboard.php');
} elseif (in_array('lab_formularios', $modules, true)) {