Bläddra i källkod

added check for signed note for shared section

Josh 4 år sedan
förälder
incheckning
693083dfe7
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      app/Http/Controllers/GuestController.php

+ 2 - 1
app/Http/Controllers/GuestController.php

@@ -28,7 +28,8 @@ class GuestController extends Controller
 
         $patient = null;
         if($section->note){
-           $patient = $section->note->client;
+            abort_if($section->note->is_signed_by_hcp, 401, 'Note is already signed.');
+            $patient = $section->note->client;
         }else{
             $patient = $section->client;
         }