Skip to content

Commit

Permalink
Merge pull request #1486 from openhealthcare/read-only-tb-review-list
Browse files Browse the repository at this point in the history
Makes read only users unable to interact with the TB review list
  • Loading branch information
davidmiller committed May 25, 2023
2 parents d62b972 + 5fb9914 commit 28c7ec2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/tb/templates/partials/tb_appointments.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ <h3><i class="fa fa-calendar"></i> TB Appointments</h3>
>
TB Review Patients
</a>
{% if not request.user.profile.readonly %}
<button
ng-hide="episode.tagging[0].tb_review_patients"
ng-click="open_modal('AddRemoveTagCtrl', '/templates/modals/add_remove_tag.html', {episode: episode, tagName: 'tb_review_patients', tagDisplayName: 'TB Review Patients', addTag: true})"
Expand All @@ -77,6 +78,7 @@ <h3><i class="fa fa-calendar"></i> TB Appointments</h3>
<i class="fa fa-sign-out"></i>
Remove
</button>
{% endif %}
</div>
</div>
</div>
Expand Down

0 comments on commit 28c7ec2

Please sign in to comment.