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())) {