Merge "Fetch account-by-id from accounts cache during auth"

This commit is contained in:
Edwin Kempin
2015-08-18 13:50:19 +00:00
committed by Gerrit Code Review

View File

@@ -114,8 +114,8 @@ public class AccountManager {
} else { // Account exists
Account act = db.accounts().get(id.getAccountId());
if (act == null || !act.isActive()) {
Account act = byIdCache.get(id.getAccountId()).getAccount();
if (!act.isActive()) {
throw new AccountException("Authentication error, account inactive");
}