Gate Queue to doctors and land specialty modules on list indexes.
Deploy Ladill Care / deploy (push) Successful in 34s

Hide the patient-flow Queue board from nurses, reception, and other
non-doctors; specialty home routes now render the queue board list
instead of auto-opening the first open visit.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 22:53:12 +00:00
co-authored by Cursor
parent 244bb8fba6
commit d422797050
22 changed files with 277 additions and 122 deletions
+5 -7
View File
@@ -111,15 +111,13 @@ class CarePermissions
}
/**
* Dedicated patient-flow board (GP / specialty Queue homes).
* Nurses keep specialty workspaces and vitals not the call-next board.
* Dedicated patient-flow board (GP Queue home / call-next board).
* Doctors only nurses, reception, pharmacy, and other floor roles use
* specialty module lists and service queues instead.
* Facility admins manage settings/staff and do not staff this board.
*/
public function canAccessPatientQueue(?Member $member): bool
{
if (! $this->handlesFloorCare($member)) {
return false;
}
return $member->role !== 'nurse';
return $member !== null && $member->role === 'doctor';
}
}