Merge branch 'RED-6852' into 'master'

RED-6852 - localManualRedaction is false for resized rule-Based redaction

Closes RED-6852

See merge request redactmanager/persistence-service!57
This commit is contained in:
Corina Olariu 2023-07-28 10:58:12 +02:00
commit 9ec55808d6

View File

@ -87,7 +87,8 @@ public class RedactionLogEntry {
public boolean isLocalManualRedaction() {
return manualChanges != null && manualChanges.stream()
.anyMatch(mc -> mc.getManualRedactionType() == ManualRedactionType.ADD_LOCALLY && mc.getAnnotationStatus() == AnnotationStatus.APPROVED);
.anyMatch(mc -> mc.getManualRedactionType() == ManualRedactionType.ADD_LOCALLY && mc.getAnnotationStatus() == AnnotationStatus.APPROVED
|| mc.getManualRedactionType() == ManualRedactionType.RESIZE && mc.getAnnotationStatus() == AnnotationStatus.APPROVED && engines.contains(Engine.RULE));
}