commit | abb68b5a356b8dd9bd4274d573955ce7f7c141c6 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Thu Sep 29 00:29:55 2016 +0100 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Thu Sep 29 00:29:55 2016 +0100 |
tree | 11c7d8cecf72ef37efdfd98335b8dab36cb649c1 | |
parent | 637767d87eead876cabfbe721aad064fca983c88 [diff] |
TO BE REMOVED: temporary hack for user switch Change-Id: If6d0f038de9b30d9c6f52a98778fd2dfa7f7d964
diff --git a/github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/filters/GitHubOAuthFilter.java b/github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/filters/GitHubOAuthFilter.java index 03010b4..127f310 100644 --- a/github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/filters/GitHubOAuthFilter.java +++ b/github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/filters/GitHubOAuthFilter.java
@@ -84,6 +84,11 @@ } private AccountExternalId getGitHubExternalId(CurrentUser user) { + try { + accountCache.evict(user.getAccountId()); + } catch (IOException e) { + } + Collection<AccountExternalId> accountExtIds = accountCache.get(((IdentifiedUser) user).getAccountId()) .getExternalIds();