From 8b8a295e1631a579b6945e07d61aa623b54ea707 Mon Sep 17 00:00:00 2001 From: imperosol Date: Fri, 10 Jan 2025 01:29:24 +0100 Subject: [PATCH] fix ban page access --- core/templates/core/user_tools.jinja | 2 +- rootplace/templates/rootplace/userban.jinja | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/templates/core/user_tools.jinja b/core/templates/core/user_tools.jinja index 10f3fe9d..177b4199 100644 --- a/core/templates/core/user_tools.jinja +++ b/core/templates/core/user_tools.jinja @@ -23,7 +23,7 @@
  • {% trans %}Operation logs{% endtrans %}
  • {% trans %}Delete user's forum messages{% endtrans %}
  • {% endif %} - {% if user.has_perm("core:view_userban") %} + {% if user.has_perm("core.view_userban") %}
  • {% trans %}Bans{% endtrans %}
  • {% endif %} {% if user.can_create_subscription or user.is_root %} diff --git a/rootplace/templates/rootplace/userban.jinja b/rootplace/templates/rootplace/userban.jinja index 4510abf2..fe33a521 100644 --- a/rootplace/templates/rootplace/userban.jinja +++ b/rootplace/templates/rootplace/userban.jinja @@ -7,7 +7,7 @@ {% block content %} - {% if user.has_perm("core:add_userban") %} + {% if user.has_perm("core.add_userban") %} {% trans %}Ban a user{% endtrans %} @@ -44,7 +44,7 @@ {% trans %}Reason{% endtrans %}

    {{ user_ban.reason }}

    - {% if user.has_perm("core:delete_userban") %} + {% if user.has_perm("core.delete_userban") %}