Allow explicit multi-branch practitioner assignment for telemedicine.
Deploy Ladill Care / deploy (push) Successful in 1m29s
Deploy Ladill Care / deploy (push) Successful in 1m29s
Replace optional “All branches” with required branch checkboxes; doctors may switch only among assigned sites, never org-wide by default. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -240,10 +240,6 @@ class QueueController extends Controller
|
||||
{
|
||||
$this->authorizeOwner($request, $appointment);
|
||||
abort_unless($appointment->organization_id === $this->organization($request)->id, 404);
|
||||
|
||||
$branchId = app(OrganizationResolver::class)->branchScope($this->member($request));
|
||||
if ($branchId !== null && $appointment->branch_id !== $branchId) {
|
||||
abort(404);
|
||||
}
|
||||
$this->authorizeBranch($request, (int) $appointment->branch_id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user