From 868e78d7f125ddd5642bb849bbd84e48c85bd3ce Mon Sep 17 00:00:00 2001 From: Pasindu Yeshan Date: Thu, 26 Oct 2023 10:55:49 +0530 Subject: [PATCH] Fixed empty permission list replace issue --- .../carbon/identity/scim2/common/impl/SCIMRoleManagerV2.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMRoleManagerV2.java b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMRoleManagerV2.java index 889359100..e4bc1119d 100644 --- a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMRoleManagerV2.java +++ b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMRoleManagerV2.java @@ -849,10 +849,6 @@ private void prepareAddedRemovedPermissionLists(Set addedPermissions, Se private void prepareReplacedPermissionLists(List permissionsOfRole, Set addedPermissions, Set removedPermissions, Set replacedPermissions) { - if (replacedPermissions.isEmpty()) { - return; - } - if (!permissionsOfRole.isEmpty()) { for (Permission permission : permissionsOfRole) { if (!replacedPermissions.contains(permission.getName())) {