Skip to content

Commit

Permalink
Fixes revoke access script
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Dec 6, 2024
1 parent 6d7f4c0 commit 9d4ca1e
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -918,15 +918,8 @@ public ResourceSharing revokeAccess(
if (existingScope.containsKey(entityType) && existingScope[entityType] != null) {
existingScope[entityType].removeAll(entitiesToRemove);
if (existingScope[entityType].isEmpty()) {
existingScope.remove(entityType);
}
}
}
if (existingScope.isEmpty()) {
ctx._source.share_with.remove(scopeName);
}
}
}
}
Expand Down

0 comments on commit 9d4ca1e

Please sign in to comment.