Improve accuracy of User::getList with type = blocked

- user.blocked is used for pending registrations as well
This commit is contained in:
Hypolite Petovan 2020-11-08 02:26:12 -05:00
parent e3c8b6def0
commit ffb4292b0b

View file

@ -1511,7 +1511,9 @@ class User
$condition['blocked'] = false;
break;
case 'blocked':
$condition['account_removed'] = false;
$condition['blocked'] = true;
$condition['verified'] = true;
break;
case 'removed':
$condition['account_removed'] = true;