Hide My care unit and My shifts from hospital admins.
Deploy Ladill Care / deploy (push) Successful in 41s

Wildcard admin abilities matched those nurse workplace links; admins should use Nursing Services and Care units instead.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-20 17:53:47 +00:00
co-authored by Cursor
parent a23604570e
commit 1678b05017
2 changed files with 13 additions and 2 deletions
@@ -81,6 +81,17 @@ class CareMyShiftsAndNavPermissionsTest extends TestCase
]);
}
public function test_hospital_admin_does_not_see_personal_nurse_nav(): void
{
$this->actingAs($this->owner)
->get(route('care.dashboard'))
->assertOk()
->assertDontSee('>My care unit<', false)
->assertDontSee('>My shifts<', false)
->assertSee('Nursing Services', false)
->assertSee('Care units', false);
}
public function test_ambulance_staff_cannot_access_care_units_or_nursing_services_hub(): void
{
$user = User::create([