Implement Care RBAC role→permission→app matrix.
Deploy Ladill Care / deploy (push) Successful in 57s

Replace broad doctor/nurse specialty access with granular roles and primary
apps, permission inheritance for lab/BB managers, and cannot-rules for
discharge, lab approve, and cashier vs billing officer.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-20 00:24:09 +00:00
co-authored by Cursor
parent 55a1288d30
commit ac870bcf33
21 changed files with 913 additions and 239 deletions
+3 -3
View File
@@ -167,7 +167,7 @@ class CarePatientQueueAccessTest extends TestCase
public function test_nurse_specialty_show_renders_list_not_auto_open_visit(): void
{
[$nurseUser] = $this->makeStaff('nurse', 'nurse-spec');
[$nurseUser] = $this->makeStaff('ed_nurse', 'nurse-spec');
$modules = app(SpecialtyModuleService::class);
$modules->ensureDefaultModulesProvisioned($this->organization, $this->owner->public_id);
@@ -242,7 +242,7 @@ class CarePatientQueueAccessTest extends TestCase
public function test_nurse_can_open_emergency_visit_from_specialty_list(): void
{
[$nurseUser] = $this->makeStaff('nurse', 'nurse-er-open');
[$nurseUser] = $this->makeStaff('ed_nurse', 'nurse-er-open');
$modules = app(SpecialtyModuleService::class);
$modules->ensureDefaultModulesProvisioned($this->organization, $this->owner->public_id);
@@ -315,7 +315,7 @@ class CarePatientQueueAccessTest extends TestCase
public function test_nurse_specialty_show_redirects_to_workspace_not_queue(): void
{
[$nurseUser] = $this->makeStaff('nurse', 'nurse-spec-er');
[$nurseUser] = $this->makeStaff('ed_nurse', 'nurse-spec-er');
app(SpecialtyModuleService::class)
->ensureDefaultModulesProvisioned($this->organization, $this->owner->public_id);