From 87b1f40d2a1c17134a5d37ed3bd8559682203d45 Mon Sep 17 00:00:00 2001 From: Hendrik L Date: Tue, 3 Dec 2024 16:02:32 +0100 Subject: [PATCH] allow admins to access deleted user profiles --- app/templates/base.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/templates/base.html b/app/templates/base.html index 571d44c4..718d1d83 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -1,7 +1,11 @@ {% macro render_username(user, add_domain=True) -%} {% if user.deleted -%} - [deleted] + {% if current_user.is_authenticated and current_user.is_admin() -%} + [deleted] + {% else -%} + [deleted] + {% endif -%} {% else -%} {% if user.avatar_id and not low_bandwidth and not collapsed -%}