Gate specialty mutate CTAs on Care abilities, not only module manage.
Deploy Ladill Care / deploy (push) Successful in 1m3s

Nurses can manage limited specialties but lack consultations.manage, so
hide Start/stage/chart edits that 403 while keeping queue/vitals/billing
aligned with what those routes actually authorize.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 18:45:00 +00:00
co-authored by Cursor
parent 9e32eb32c5
commit 8a5330d3d2
20 changed files with 312 additions and 38 deletions
+4
View File
@@ -294,6 +294,8 @@ class CareSpecialtyShellTest extends TestCase
public function test_workspace_includes_timeline_tab_and_complete_action(): void
{
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'doctor']);
app(SpecialtyModuleService::class)->activate(
$this->organization,
$this->owner->public_id,
@@ -378,6 +380,8 @@ class CareSpecialtyShellTest extends TestCase
public function test_called_workspace_shows_call_again_until_session_starts(): void
{
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'doctor']);
app(SpecialtyModuleService::class)->activate(
$this->organization,
$this->owner->public_id,