Commit ae8fe316 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #16982 TIME 0:10 the certified document badge does not appear after signature otp internal user

parent fc4b9cca
......@@ -329,7 +329,7 @@ export class DocumentComponent implements OnInit {
const realUserWorkflow = this.mainDocument.workflow.filter((line: { current: boolean }) => line.current === true);
this.mainDocument.isCertified = this.mainDocument.workflow.filter((line: any) => line.status !== 'REF' && line.status !== 'STOP' && line.mode === 'sign' && line.signatureMode !== 'stamp' && line.processDate !== null).length > 0;
this.mainDocument.isCertified = this.mainDocument.workflow.filter((line: any) => line.status !== 'REF' && line.status !== 'STOP' && line.mode.indexOf('sign') > -1 && line.signatureMode !== 'stamp' && line.processDate !== null).length > 0;
const externalUser: any = this.mainDocument.workflow.filter((user: any) => user.userId === null && user.current === true);
if (realUserWorkflow.length === 0 || this.mainDocument.readOnly || externalUser.length > 0) {
this.actionsList = [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment