RED-5844 allow open of excluded file

This commit is contained in:
Timo Bejan 2023-01-26 17:04:46 +07:00
parent 5890e9433c
commit ac26c82cc3

View File

@ -143,7 +143,7 @@ export class File extends Entity<IFile> 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 &&