diff --git a/api/src/main/java/edu/cornell/mannlib/vitro/webapp/auth/policy/EntityPolicyController.java b/api/src/main/java/edu/cornell/mannlib/vitro/webapp/auth/policy/EntityPolicyController.java index 4bf7212e03..a37191204f 100644 --- a/api/src/main/java/edu/cornell/mannlib/vitro/webapp/auth/policy/EntityPolicyController.java +++ b/api/src/main/java/edu/cornell/mannlib/vitro/webapp/auth/policy/EntityPolicyController.java @@ -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); } } @@ -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); }