Skip to content

Commit

Permalink
Fix invalid warn log being printed in the console
Browse files Browse the repository at this point in the history
  • Loading branch information
somindatommy committed Feb 8, 2024
1 parent f9436a8 commit 5ed0601
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,14 @@ public boolean doPostUpdateRoleName(String roleName, String newRoleName, UserSto
if (!isEnable() || userStoreManager == null || !userStoreManager.isSCIMEnabled()) {
return true;
}
if (userStoreManager instanceof AbstractUserStoreManager &&
((AbstractUserStoreManager) userStoreManager).isUniqueGroupIdEnabled()) {
if (log.isDebugEnabled()) {
log.debug("UniqueGroupId is enabled. Skipping doPostUpdateRoleName in " +
"SCIMUserOperationListener");
}
return true;
}
} catch (org.wso2.carbon.user.api.UserStoreException e) {
throw new UserStoreException("Error while reading isScimEnabled from userstore manager", e);
}
Expand Down

0 comments on commit 5ed0601

Please sign in to comment.