1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 01:24:05 +01:00

/infinity/ board with locked owner password

This commit is contained in:
8chan 2015-02-20 17:16:06 -08:00
parent 488f8e2648
commit aa1d2b3128

View File

@ -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);