Skip to content

Commit

Permalink
hub: fix display of permissions in user details template
Browse files Browse the repository at this point in the history
Previously, the attributes of the actual user were shown and not those
of the selected one.
  • Loading branch information
lzaoral committed Mar 25, 2024
1 parent 9af6594 commit 707bdfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kobo/hub/templates/user/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ <h3>{% trans 'Details' %}</h3>
</tr>
<tr>
<th>{% trans "Admin" %}</th>
<td>{% if user.is_superuser %}<span class="FREE">YES</span>{% else %}<span class="FAILED">NO</span>{% endif %}</td>
<td>{% if usr.is_superuser %}<span class="FREE">YES</span>{% else %}<span class="FAILED">NO</span>{% endif %}</td>
</tr>
<tr>
<th>{% trans "Staff" %}</th>
<td>{% if user.is_staff %}<span class="FREE">YES</span>{% else %}<span class="FAILED">NO</span>{% endif %}</td>
<td>{% if usr.is_staff %}<span class="FREE">YES</span>{% else %}<span class="FAILED">NO</span>{% endif %}</td>
</tr>
<tr>
<th>{% trans "Active" %}</th>
<td>{% if user.is_active %}<span class="FREE">YES</span>{% else %}<span class="FAILED">NO</span>{% endif %}</td>
<td>{% if usr.is_active %}<span class="FREE">YES</span>{% else %}<span class="FAILED">NO</span>{% endif %}</td>
</tr>
<tr>
<th>{% trans "Tasks" %}</th>
Expand Down

0 comments on commit 707bdfa

Please sign in to comment.