Skip to content

Commit

Permalink
[Fix] fixed wrong error log on duplicate user property from group
Browse files Browse the repository at this point in the history
  • Loading branch information
eitch committed Oct 19, 2024
1 parent bb00ab8 commit 06886d3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ private void prepare(User user) {
}
Map<String, String> groupProperties = group.getProperties();
for (String key : groupProperties.keySet()) {
String replaced = this.properties.put(key, groupProperties.get(key));
if (replaced != null)
String value = groupProperties.get(key);
String replaced = this.properties.put(key, value);
if (replaced != null && !replaced.equals(value))
logger.error("Duplicate property {} for user {} from group {}", key, user.getUsername(), groupName);
}
}
Expand Down

0 comments on commit 06886d3

Please sign in to comment.