From ac26c82cc3d6164bef9d5cf11b32aa663de1bf8a Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Thu, 26 Jan 2023 17:04:46 +0700 Subject: [PATCH] RED-5844 allow open of excluded file --- libs/red-domain/src/lib/files/file.model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/red-domain/src/lib/files/file.model.ts b/libs/red-domain/src/lib/files/file.model.ts index d9c2747b0..9892c5163 100644 --- a/libs/red-domain/src/lib/files/file.model.ts +++ b/libs/red-domain/src/lib/files/file.model.ts @@ -143,7 +143,7 @@ export class File extends Entity implements IFile { this.isUnderReview = this.workflowStatus === WorkflowFileStatuses.UNDER_REVIEW; this.isUnderApproval = this.workflowStatus === WorkflowFileStatuses.UNDER_APPROVAL; this.canBeApproved = !this.hasSuggestions && !this.isProcessing && !this.isError; - this.canBeOpened = !this.isError && !this.isUnprocessed && this.numberOfAnalyses > 0; + this.canBeOpened = (!this.isError && !this.isUnprocessed && this.numberOfAnalyses > 0) || this.excluded; this.canBeOCRed = !this.excluded && !this.lastOCRTime &&