[FIX] Lock state 2 for admin locks

This commit is contained in:
Sebastian Grewe 2014-01-26 09:41:58 +01:00
parent 702ed49704
commit 7c8d7701f2

View File

@ -23,7 +23,7 @@ case 'lock':
$supress_master = 1;
// Reset user account
if ($user->isLocked($_POST['account_id']) == 0) {
$user->setLocked($_POST['account_id'], 1);
$user->setLocked($_POST['account_id'], 2);
} else {
$user->setLocked($_POST['account_id'], 0);
$user->setUserFailed($_POST['account_id'], 0);