Ver código fonte

dont allow non-admins to map devices to patients

Vijayakrishnan 3 anos atrás
pai
commit
62a56a5543

+ 1 - 1
resources/views/app/patient/dashboard.blade.php

@@ -90,7 +90,7 @@
                 <div class="mt-2 pb-1" id="patient-dashboard-devices">
                     <div class="d-flex align-items-center mb-2 py-2 border-top border-bottom">
                         <h6 class="my-0 font-weight-bold text-secondary">Devices</h6>
-                        @if($availableDevices > 0)
+                        @if($availableDevices > 0 && $pro->pro_type === 'ADMIN')
                         <span class="mx-2 text-secondary">|</span>
                         <span moe>
                             <a start show>Add</a>

+ 1 - 1
resources/views/app/patient/devices.blade.php

@@ -5,7 +5,7 @@
     <div id="patient-devices">
         <div class="d-flex align-items-center pb-2">
             <div class="font-weight-bold m-0 font-size-16">Devices</div>
-            @if(count($devices))
+            @if(count($devices) && $pro->pro_type === 'ADMIN')
             <span class="mx-2 text-secondary">|</span>
             <div moe>
                 <a start show>Add</a>