mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
Revert "KeycloakRole equals only with itself"
This reverts commit 28993756145a5c717c76ed34ed5debd80221bfdd.
This commit is contained in:
parent
5a5325672b
commit
9215957bd0
@ -51,13 +51,13 @@ public class KeycloakRole implements GrantedAuthority {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof GrantedAuthority)) {
|
||||
if (!(o instanceof KeycloakRole)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
GrantedAuthority that = (GrantedAuthority) o;
|
||||
KeycloakRole that = (KeycloakRole) o;
|
||||
|
||||
if (!role.equals(that.getAuthority())) {
|
||||
if (!role.equals(that.role)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user