RED-7400: fixed error of breaking redaction log with removing engine-check for resize redactions
This commit is contained in:
parent
09ea7cada2
commit
2eecf7c428
@ -88,7 +88,11 @@ 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) && !engines.contains(Engine.DICTIONARY));
|
||||
|| isResizeRedaction(mc));
|
||||
}
|
||||
|
||||
private boolean isResizeRedaction(ManualChange mc) {
|
||||
return mc.getManualRedactionType() == ManualRedactionType.RESIZE && mc.getAnnotationStatus() == AnnotationStatus.APPROVED;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user