This commit is contained in:
Lizandro Guarnizo
2026-03-16 21:00:39 -05:00
parent 79bcc5e4bf
commit fe1d3c31b3
4 changed files with 255 additions and 9 deletions
+1
View File
@@ -16,6 +16,7 @@ try {
if (!empty($_GET['formulario_id'])) $filtros['formulario_id'] = (int)$_GET['formulario_id'];
if (!empty($_GET['paciente_id'])) $filtros['paciente_id'] = (int)$_GET['paciente_id'];
if (!empty($_GET['estado'])) $filtros['estado'] = $_GET['estado'];
if (!empty($_GET['fecha_desde'])) $filtros['fecha_desde'] = $_GET['fecha_desde'];
// Enfermero solo ve los suyos
if (userRole() === 'enfermero') {
$filtros['enviado_por'] = adminId();