Implement Care RBAC role→permission→app matrix.
Deploy Ladill Care / deploy (push) Successful in 57s
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user