Skip to content

Commit

Permalink
Merge pull request #495 from PasinduYeshan/fix/v2-role-replace
Browse files Browse the repository at this point in the history
Fixed empty permission list replace issue in v2 Role patch
  • Loading branch information
AnuradhaSK authored Oct 26, 2023
2 parents 6175145 + 868e78d commit 20d8dba
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -849,10 +849,6 @@ private void prepareAddedRemovedPermissionLists(Set<String> addedPermissions, Se
private void prepareReplacedPermissionLists(List<Permission> permissionsOfRole, Set<String> addedPermissions,
Set<String> removedPermissions, Set<String> replacedPermissions) {

if (replacedPermissions.isEmpty()) {
return;
}

if (!permissionsOfRole.isEmpty()) {
for (Permission permission : permissionsOfRole) {
if (!replacedPermissions.contains(permission.getName())) {
Expand Down

0 comments on commit 20d8dba

Please sign in to comment.