From 8abaa288b6e13e63aaac18de3a2039ce675d7163 Mon Sep 17 00:00:00 2001 From: David Hoppenbrouwers Date: Wed, 26 Oct 2022 18:32:00 +0200 Subject: [PATCH] Fix non-moderators seeing the ban dialog on user info pages. It's purely a UI bug, so it's not a security issue. --- templates/user_info.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/user_info.html b/templates/user_info.html index c4b91ca..73d331c 100644 --- a/templates/user_info.html +++ b/templates/user_info.html @@ -1,7 +1,7 @@ {% extends 'base.html' %} {%- block content %} -{%- if user is not none and user.is_moderator -%} +{%- if user is not none and user.is_moderator() -%}