Skip to content

Commit

Permalink
Removes the IPC Isolation/Add to Isolation buttons for read only users
Browse files Browse the repository at this point in the history
Read only users should not be able to change isolation status
  • Loading branch information
fredkingham committed May 25, 2023
1 parent 34c45d1 commit b9de2ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/ipc/templates/ipc/siderooms.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ <h2>{{ name }}</h2>
{% if patient.isSideRoom %}1{% else %}0{% endif %}
)">
<span ng-hide='isolationHelper.isSideRoom'>
{% if not request.user.profile.readonly %}
<span ng-show='isolationHelper.isolated_bed_id'>
<button ng-click='isolationHelper.unisolate()' class="btn btn-primary">
Remove
Expand All @@ -79,6 +80,7 @@ <h2>{{ name }}</h2>
Add to Isolation
</button>
</span>
{% endif %}
</span>
</span>
</td>
Expand Down
2 changes: 2 additions & 0 deletions plugins/ipc/templates/ipc/ward_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ <h1>
{% if patient.isSideRoom %}1{% else %}0{% endif %}
)">
<span ng-hide='isolationHelper.isSideRoom'>
{% if not request.user.profile.readonly %}
<span ng-show='isolationHelper.isolated_bed_id'>
<button ng-click='isolationHelper.unisolate()' class="btn btn-primary">
Isolation
Expand All @@ -48,6 +49,7 @@ <h1>
Add to isolation
</button>
</span>
{% endif %}
</span>
</span>
</td>
Expand Down

0 comments on commit b9de2ca

Please sign in to comment.