Call conf_mount_rw before delete user, a better fix for #3294

This commit is contained in:
Renato Botelho 2013-11-02 08:46:44 -02:00
parent 23b5b16ac6
commit 8a0ae97fa0

View File

@ -82,7 +82,9 @@ if ($_GET['act'] == "deluser") {
exit;
}
conf_mount_rw();
local_user_del($a_user[$id]);
conf_mount_ro();
$userdeleted = $a_user[$id]['name'];
unset($a_user[$id]);
write_config();