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:
co-authored by
Claude Sonnet 4.6
parent
8472c916b0
commit
7b599b28ef
@@ -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';
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user