Browse Source

Admin-only memos showing up for non-admins - fix

Vijayakrishnan 3 năm trước cách đây
mục cha
commit
7e227e8107
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      resources/views/app/patient/memos.blade.php

+ 2 - 0
resources/views/app/patient/memos.blade.php

@@ -37,6 +37,7 @@
                 </thead>
                 <tbody>
                 @foreach($patient->memos as $memo)
+                    @if(!$memo->is_admin_only || ($memo->is_admin_only && $performer->pro->pro_type === 'ADMIN') )
                     <tr>
                         <td>{{ $memo->category }}</td>
                         <td><pre class="m-0 break-spaces">{{ $memo->content }}</pre></td>
@@ -81,6 +82,7 @@
                             </div>
                         </td>
                     </tr>
+                    @endif
                 @endforeach
                 </tbody>
             @else