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