Skip to content

Commit

Permalink
Fix policy rules bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Feb 14, 2023
1 parent c403c52 commit 28edd73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void evaluate(OperationResult result)
LOGGER.trace("Rule {} is not applicable to the focus/projection, skipping: {}", rule.getName(), rule);
}
}
elementContext.setObjectPolicyRules(rules);
elementContext.setObjectPolicyRules(applicableRules);
return applicableRules;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ public void test300DrakeChangeEmployeeType() throws Exception {
.asObjectDelta(USER_DRAKE_OID);

RecordingProgressListener recordingListener = new RecordingProgressListener();
modelService.executeChanges(Collections.singletonList(delta), null, task, Collections.singleton(recordingListener), result);
modelService.executeChanges(List.of(delta), null, task, List.of(recordingListener), result);

// THEN
then();
Expand Down

0 comments on commit 28edd73

Please sign in to comment.