Pull request #196: RED-3262

Merge in RED/persistence-service from RED-3262 to master

* commit 'd8f3220a85867309b75862b3399415427340b5b8':
  RED-3262
This commit is contained in:
Timo Bejan 2022-01-25 15:22:42 +01:00
commit 7daecb32d0

View File

@ -56,7 +56,7 @@ public class FileService {
var fileId = generateFileId(request);
var existingStatus = retrieveStatus(fileId);
if (existingStatus != null) {
if (existingStatus != null && !existingStatus.isSoftOrHardDeleted()) {
if (existingStatus.getWorkflowStatus().equals(WorkflowStatus.APPROVED)) {
throw new ConflictException("File already exists in status APPROVED");
}