From 707bdfab28c5b314a37ae037365e55cf18c00a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= Date: Mon, 25 Mar 2024 16:25:46 +0100 Subject: [PATCH] hub: fix display of permissions in user details template Previously, the attributes of the actual user were shown and not those of the selected one. --- kobo/hub/templates/user/detail.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kobo/hub/templates/user/detail.html b/kobo/hub/templates/user/detail.html index 9ef4def8..b262e928 100644 --- a/kobo/hub/templates/user/detail.html +++ b/kobo/hub/templates/user/detail.html @@ -17,15 +17,15 @@

{% trans 'Details' %}

{% trans "Admin" %} - {% if user.is_superuser %}YES{% else %}NO{% endif %} + {% if usr.is_superuser %}YES{% else %}NO{% endif %} {% trans "Staff" %} - {% if user.is_staff %}YES{% else %}NO{% endif %} + {% if usr.is_staff %}YES{% else %}NO{% endif %} {% trans "Active" %} - {% if user.is_active %}YES{% else %}NO{% endif %} + {% if usr.is_active %}YES{% else %}NO{% endif %} {% trans "Tasks" %}