Skip to content

Commit

Permalink
Makes read only users unable to add patients from empty patient lists
Browse files Browse the repository at this point in the history
Previously empty playlists prompted all users to add a patient,
including read only and redirected them to the add patient pathway.

This change makes it so that read only users are not prompted to add a
patient
  • Loading branch information
fredkingham committed May 24, 2023
1 parent 34c45d1 commit 46fb8a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elcid/templates/episode_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h2>
<p class="lead text-center">
There are no patients on this list.
</p>
{% if not patient_list.is_read_only %}
{% if not patient_list.is_read_only and not request.user.profile.readonly %}
<p class="lead text-center">
<span class="screen-only">
Would you like to <a href="/pathway/#/add_patient">add one</a>?
Expand Down

0 comments on commit 46fb8a1

Please sign in to comment.