1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-25 16:00:22 +01:00

Only show IPs in ?/bans if mod has show_ip

This commit is contained in:
8chan 2014-10-10 09:52:23 -07:00
parent 593c25b77b
commit a838e2986c

View File

@ -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() {