From cbd7dbd2090240815835766e14fb7ae750d43cc3 Mon Sep 17 00:00:00 2001 From: DedunuKarunarathne <46235093+DedunuKarunarathne@users.noreply.github.com> Date: Mon, 7 Oct 2024 12:38:33 +0530 Subject: [PATCH] Remove clear user authorization from updating hybrid roles Remove clear user authorization from updating hybrid roles since user authorization is not used in MI. Fixes: https://github.com/wso2/micro-integrator/issues/3651 --- .../security/user/core/hybrid/JdbcHybridRoleManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/org.wso2.micro.integrator.security/src/main/java/org/wso2/micro/integrator/security/user/core/hybrid/JdbcHybridRoleManager.java b/components/org.wso2.micro.integrator.security/src/main/java/org/wso2/micro/integrator/security/user/core/hybrid/JdbcHybridRoleManager.java index 2683fa3426..4782ec25bf 100644 --- a/components/org.wso2.micro.integrator.security/src/main/java/org/wso2/micro/integrator/security/user/core/hybrid/JdbcHybridRoleManager.java +++ b/components/org.wso2.micro.integrator.security/src/main/java/org/wso2/micro/integrator/security/user/core/hybrid/JdbcHybridRoleManager.java @@ -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); +// } } /**