KEYCLOAK-5676
This commit is contained in:
parent
6b8ead6c4b
commit
485ba4a3e4
1 changed files with 15 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue