KEYCLOAK-15208: PermissionTicketAdapter checks for the wrong type

This commit is contained in:
testn 2020-08-19 10:13:03 +07:00 committed by Pedro Igor
parent e01159a943
commit c288175c03

View file

@ -130,7 +130,7 @@ public class PermissionTicketAdapter implements PermissionTicket, JpaModel<Permi
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || !(o instanceof Policy)) return false;
if (o == null || !(o instanceof PermissionTicket)) return false;
PermissionTicket that = (PermissionTicket) o;
return that.getId().equals(getId());