This commit is contained in:
AKurakin 2023-06-09 10:39:00 +03:00
parent 66cf85a688
commit b85247dfaf

View file

@ -166,8 +166,8 @@ public class AccountValidationConfig {
AccountError.RequiredFieldEmpty,
AccountError.AccountNotFound,
account -> {
if (WorkflowStatus.Active.equalsByKey(account.getStatus())) return null;
return AccountError.AccountNotActive;
if (AccountStatus.BLOCKED.equalsByKey(account.getStatus())) return AccountError.AccountNotActive;
return null;
})
);
};