From a838e2986cce341823d398d2e037be7985ae5426 Mon Sep 17 00:00:00 2001 From: 8chan Date: Fri, 10 Oct 2014 09:52:23 -0700 Subject: [PATCH] Only show IPs in ?/bans if mod has show_ip --- inc/mod/pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 35773e7c..913a9f54 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1034,7 +1034,7 @@ function mod_bans_json() { // Compress the json for faster loads if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); - Bans::stream_json(false, false, !hasPermission($config['mod']['view_banstaff']), $mod['boards']); + Bans::stream_json(false, !hasPermission($config['mod']['show_ip']), !hasPermission($config['mod']['view_banstaff']), $mod['boards']); } function mod_ban_appeals() {