Commit 2c191b08 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #16956 TIME 0:25 disable add date block button if external user

parent bdf8c6b6
......@@ -85,7 +85,7 @@
<mat-icon class="fas fa-plus" style="height: auto"></mat-icon>
</button>
<mat-menu #actionPosMenu="matMenu">
<button mat-menu-item [disabled]="!emptyDate()"
<button mat-menu-item [disabled]="!emptyDate() || !checkExternalUser()"
(click)="initDateBlock()">{{'lang.addDateBlock' | translate}}</button>
<button mat-menu-item [disabled]="!emptySign()"
(click)="initSign()">{{'lang.addSignaturePosition' | translate}}</button>
......
......@@ -262,4 +262,8 @@ export class SignaturePositionComponent implements OnInit {
})
).subscribe();
}
checkExternalUser() {
return this.data.workflow[this.currentUser].item_id !== null ? true : false;
}
}
Markdown is supported
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