From aa1d2b3128a21b9da8bbca56310681af88415cc1 Mon Sep 17 00:00:00 2001 From: 8chan Date: Fri, 20 Feb 2015 17:16:06 -0800 Subject: [PATCH] /infinity/ board with locked owner password --- inc/mod/pages.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 3f82d974..44c69695 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1877,6 +1877,9 @@ function mod_user($uid) { if (!hasPermission($config['mod']['editusers']) && !(hasPermission($config['mod']['change_password']) && $uid == $mod['id'])) error($config['error']['noaccess']); + + if (in_array($mod['boards'][0], array('infinity', 'z'))) + error('This board has password changing disabled.'); $query = prepare('SELECT * FROM ``mods`` WHERE `id` = :id'); $query->bindValue(':id', $uid);