From 37f2c80e305fedad2deebb328f476e0e1bf44eb9 Mon Sep 17 00:00:00 2001 From: 8chan Admin Date: Sat, 5 Apr 2014 16:24:26 +0000 Subject: [PATCH] fix bug where mods could see bans not on their board on IP page --- inc/mod/pages.php | 1 - templates/mod/view_ip.html | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 3926a013..256571bd 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -799,7 +799,6 @@ function mod_page_ip($ip) { if ($config['mod']['dns_lookup']) $args['hostname'] = rDNS($ip); - $boards = listBoards(); foreach ($boards as $board) { openBoard($board['uri']); diff --git a/templates/mod/view_ip.html b/templates/mod/view_ip.html index cec3f8ad..a4ea17bc 100644 --- a/templates/mod/view_ip.html +++ b/templates/mod/view_ip.html @@ -89,6 +89,7 @@ {{ bans|count }} {% trans bans_on_record %} {% for ban in bans %} + {% if ban.board in mod.boards or mod.boards.0 == '*' %}
@@ -164,6 +165,7 @@ + {% endif %} {% endfor %} {% endif %}