Hide My care unit and My shifts from hospital admins.
Deploy Ladill Care / deploy (push) Successful in 41s
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:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user