@Override public boolean hasCustomUserAvatar(ApplicationUser remoteUser, ApplicationUser user) { // In addition to no configured avatar, if the user's avatar is external, it is considered "custom". // This should be finessed into the real question which is "can I have the edit link for this?" which should // be encapsulated by the avatar support plugin moduletype. Bonus is that question would work for admin use case // As of end of 2014 this belongs to the Identity team's backlog and the Atlassian ID project's ongoing work on // cross-product avatar APIs. Delete this comment by the end of 2016 if everything has changed again - christo return remoteUser != null && (configuredAvatarIdFor(user) != null || isUsingExternalAvatar(remoteUser, user)); }