forked from GithubBackups/vichan
/infinity/ board with locked owner password
This commit is contained in:
parent
488f8e2648
commit
aa1d2b3128
@ -1877,6 +1877,9 @@ function mod_user($uid) {
|
|||||||
|
|
||||||
if (!hasPermission($config['mod']['editusers']) && !(hasPermission($config['mod']['change_password']) && $uid == $mod['id']))
|
if (!hasPermission($config['mod']['editusers']) && !(hasPermission($config['mod']['change_password']) && $uid == $mod['id']))
|
||||||
error($config['error']['noaccess']);
|
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 = prepare('SELECT * FROM ``mods`` WHERE `id` = :id');
|
||||||
$query->bindValue(':id', $uid);
|
$query->bindValue(':id', $uid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user