about summary refs log tree commit diff
path: root/gn_auth/auth
diff options
context:
space:
mode:
Diffstat (limited to 'gn_auth/auth')
-rw-r--r--gn_auth/auth/authorisation/users/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/users/views.py b/gn_auth/auth/authorisation/users/views.py
index 394b92c..bff48fe 100644
--- a/gn_auth/auth/authorisation/users/views.py
+++ b/gn_auth/auth/authorisation/users/views.py
@@ -595,7 +595,7 @@ def __fetch_non_deletable_users__(cursor, ids_and_reasons):
                    _user_ids)
     return tuple({
         "user": dict(row),
-        "reasons": _reasons_by_id[row["user_id"]]
+        "reasons": _reasons_by_id[row["user_id"]]["reasons"]
     } for row in cursor.fetchall())