Skip to content

Commit

Permalink
Remove clear user authorization from updating hybrid roles
Browse files Browse the repository at this point in the history
Remove clear user authorization from updating hybrid roles since user authorization is not used in MI. Fixes: #3651
  • Loading branch information
DedunuKarunarathne committed Oct 16, 2024
1 parent 43efc7a commit cbd7dbd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -730,9 +730,9 @@ public void updateHybridRoleListOfUser(String user, String[] deletedRoles, Strin
DatabaseUtil.closeAllConnections(dbConnection);
}
// Authorization cache of user should also be updated if deleted roles are involved
if (deletedRoles != null && deletedRoles.length > 0) {
userRealm.getAuthorizationManager().clearUserAuthorization(user);
}
// if (deletedRoles != null && deletedRoles.length > 0) {
// userRealm.getAuthorizationManager().clearUserAuthorization(user);
// }
}

/**
Expand Down

0 comments on commit cbd7dbd

Please sign in to comment.