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 authored and chenejac committed May 9, 2024
1 parent d910dd3 commit 012c9de
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 012c9de

Please sign in to comment.