Keep Nursing Services hub off the regular nurse role.
Deploy Ladill Care / deploy (push) Successful in 35s
Deploy Ladill Care / deploy (push) Successful in 35s
Floor nurses keep clinical charting and My shifts but no longer derive nursing.services.view, roster manage, or the Nursing / Nursing Services admin nav. Ward lead roles (ed_nurse, midwife, …) and admins are unchanged. Gate the nursing_services specialty redirect the same way as the hub route. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -35,6 +35,8 @@ class SpecialtyModuleController extends Controller
|
||||
): View|RedirectResponse {
|
||||
// Nursing Services is an ops hub (roster / registry), not a patient specialty shell.
|
||||
if ($module === 'nursing_services') {
|
||||
$this->authorizeAbility($request, 'nursing.services.view');
|
||||
|
||||
return redirect()->route('care.nursing.services');
|
||||
}
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ class CarePermissions
|
||||
'cashier' => [],
|
||||
'accountant' => [],
|
||||
'department_manager' => null, // department analytics — all enabled modules view
|
||||
'nurse' => ['vaccination', 'child_welfare', 'infusion', 'womens_health', 'nursing_services'],
|
||||
'nurse' => ['vaccination', 'child_welfare', 'infusion', 'womens_health'],
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -498,9 +498,8 @@ class CarePermissions
|
||||
],
|
||||
];
|
||||
|
||||
/** Ward / nursing-ops roles — not every clinical role with vitals (e.g. ambulance, GP). */
|
||||
/** Ward / nursing-ops roles (charge / unit leads) — not the legacy floor `nurse`. */
|
||||
protected array $nursingOpsRoles = [
|
||||
'nurse',
|
||||
'ed_nurse',
|
||||
'theatre_nurse',
|
||||
'labour_ward_nurse',
|
||||
|
||||
Reference in New Issue
Block a user