Merge pull request #4702 from patriot1burke/master

KEYCLOAK-5676
This commit is contained in:
Bill Burke 2017-11-15 10:30:12 -05:00 committed by GitHub
commit 8839278da7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -244,4 +244,19 @@ public class UserModelDelegate implements UserModel {
public boolean isMemberOf(GroupModel group) {
return delegate.isMemberOf(group);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof UserModel)) return false;
UserModel that = (UserModel) o;
return getDelegate() != null ? getDelegate().getId().equals(that.getId()) : false;
}
@Override
public int hashCode() {
return getDelegate().getId().hashCode();
}
}