fix(turnero): bacterióloga sin token va al dashboard, no a lugar_id=1

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-28 11:55:30 -05:00
co-authored by Claude Sonnet 4.6
parent 8472c916b0
commit 7b599b28ef
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ if ($_indexRole === 'recepcionista') {
header('Location: erp.php?m=turnero&v=recepcion'); exit;
}
if (in_array('turnero', $_indexModules, true) && !in_array('whatsapp', $_indexModules, true)) {
$_indexAdminRoles = ['superadmin', 'admin', 'supervisor'];
$_indexAdminRoles = ['superadmin', 'admin', 'supervisor', 'bacteriologo'];
$url = in_array($_indexRole, $_indexAdminRoles, true)
? 'erp.php?m=turnero&v=dashboard'
: 'erp.php?m=turnero&v=recepcion';
+1 -1
View File
@@ -105,7 +105,7 @@ if ($_POST && !$loginBlocked) {
header('Location: enfermero_portal.php');
} elseif (in_array('turnero', $modules, true)) {
if ($roleSlug === 'bacteriologo') {
header('Location: erp.php?m=turnero&v=lugar&lugar_id=1');
header('Location: erp.php?m=turnero&v=dashboard');
} elseif (in_array($roleSlug, ['superadmin', 'admin', 'supervisor'], true)) {
header('Location: erp.php?m=turnero&v=dashboard');
} else {