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

- update the condition for rule based redaction in case of resize
This commit is contained in:
Corina Olariu 2023-08-02 16:48:20 +03:00
parent 0cb92b8581
commit 825166b8fc

View File

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