1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-25 16:00:22 +01:00
This commit is contained in:
Savetheinternet 2011-08-10 15:35:46 +10:00
parent 425df61e32
commit 8630afe2ba

View File

@ -1115,7 +1115,7 @@
header('Location: ?/users', true, $config['redirect_http']);
} else {
// Edit user
if(!hasPermission($config['mod']['editusers']) || !hasPermission($config['mod']['change_password'])) error($config['error']['noaccess']);
if(!hasPermission($config['mod']['editusers']) && !hasPermission($config['mod']['change_password'])) error($config['error']['noaccess']);
$query = prepare("SELECT * FROM `mods` WHERE `id` = :id");
$query->bindValue(':id', $modID, PDO::PARAM_INT);