Revert "KeycloakRole equals only with itself"
This reverts commit 2899375614
.
This commit is contained in:
parent
5a5325672b
commit
9215957bd0
1 changed files with 3 additions and 3 deletions
|
@ -51,13 +51,13 @@ public class KeycloakRole implements GrantedAuthority {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (!(o instanceof GrantedAuthority)) {
|
if (!(o instanceof KeycloakRole)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
GrantedAuthority that = (GrantedAuthority) o;
|
KeycloakRole that = (KeycloakRole) o;
|
||||||
|
|
||||||
if (!role.equals(that.getAuthority())) {
|
if (!role.equals(that.role)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue