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
@@ -150,7 +150,12 @@ class AppointmentController extends Controller
->with('success', 'Walk-in checked in. Complete the current patient journey stage before Queue release.');
}
return redirect()->route('care.queue.index')
if (app(CarePermissions::class)->canAccessPatientQueue($this->member($request))) {
return redirect()->route('care.queue.index')
->with('success', 'Walk-in added to queue.');
}
return redirect()->route('care.appointments.show', $appointment)
->with('success', 'Walk-in added to queue.');
}
@@ -217,7 +222,12 @@ class AppointmentController extends Controller
->with('success', 'Patient checked in. Complete the current patient journey stage before Queue release.');
}
return redirect()->route('care.queue.index')
if (app(CarePermissions::class)->canAccessPatientQueue($this->member($request))) {
return redirect()->route('care.queue.index')
->with('success', 'Patient checked in and added to queue.');
}
return redirect()->route('care.appointments.show', $appointment)
->with('success', 'Patient checked in and added to queue.');
}