Skip to content

Commit

Permalink
provided named key components to reduceInactiveValueSets method to av…
Browse files Browse the repository at this point in the history
…oid removal not related permissions
  • Loading branch information
litvinovg committed May 8, 2024
1 parent 6b0a2d2 commit 0c9fd91
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static void revokeAccess(String entityUri, AccessObjectType aot, AccessOp
getLoader().updateAccessControlModel(toRemove, false);
}
} else {
reduceInactiveValueSet(entityUri, aot, ao, role);
reduceInactiveValueSet(entityUri, aot, ao, role, namedKeyComponents);
}
}

Expand All @@ -74,9 +74,9 @@ private static PolicyLoader getLoader() {
}

private static void reduceInactiveValueSet(String entityUri, AccessObjectType aot, AccessOperation ao,
String role) {
String role, String... namedKeyComponents) {
StringBuilder removals = new StringBuilder();
getDataValueStatements(entityUri, aot, ao, Collections.singleton(role), removals);
getDataValueStatements(entityUri, aot, ao, Collections.singleton(role), removals, namedKeyComponents);
getLoader().updateAccessControlModel(removals.toString(), false);
}

Expand Down

0 comments on commit 0c9fd91

Please sign in to comment.