This commit is contained in:
Timo Bejan 2022-01-25 16:10:44 +02:00
parent fc09c71b86
commit d8f3220a85

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");
}