Skip to content

Commit

Permalink
Fixed empty permission list replace issue
Browse files Browse the repository at this point in the history
  • Loading branch information
PasinduYeshan committed Oct 26, 2023
1 parent 6175145 commit 868e78d
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 868e78d

Please sign in to comment.