feat(turnero): bacteriólogo sin dashboard/historial, redirige por IP

- Auth: agrega isBacteriologo()
- App: guard que bloquea dashboard e historial para bacteriólogo y
  redirige según IP (turnero_dispositivos); IP registrada → ese lugar,
  IP libre → primer lugar de muestras
- module.php: sidebar bacteriólogo sin Dashboard/Historial; IP
  registrada muestra solo ese lugar, IP libre muestra TV + todos los
  lugares muestras

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-08 07:54:48 -05:00
co-authored by Claude Sonnet 4.6
parent a776c5733c
commit b2e7130762
3 changed files with 82 additions and 10 deletions
+5
View File
@@ -67,6 +67,11 @@ class Auth
return self::role() === 'enfermero';
}
public static function isBacteriologo(): bool
{
return self::role() === 'bacteriologo';
}
public static function isAdmin(): bool
{
return self::role() === 'admin';