Skip to content

Commit

Permalink
Fixing issue where check was looking at the same object.
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Jennings <pajennin@redhat.com>
  • Loading branch information
patrickjennings committed May 15, 2024
1 parent e084946 commit e73b14c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ private static void addClientScopeToClient(RealmModel realm, ClientModel client,
public static void updateClient(ClientRepresentation rep, ClientModel resource, KeycloakSession session) {

if (Profile.isFeatureEnabled(Profile.Feature.CLIENT_TYPES)) {
if (!ObjectUtil.isEqualOrBothNull(rep.getType(), rep.getType())) {
if (!ObjectUtil.isEqualOrBothNull(resource.getType(), rep.getType())) {
throw new ClientTypeException("Not supported to change client type");
}
if (rep.getType() != null) {
Expand Down

0 comments on commit e73b14c

Please sign in to comment.