Fix: Vouchers post was not allowed as the check was wrong.

This commit is contained in:
2020-11-23 17:29:32 +05:30
parent 1b84ef0b11
commit 715e35ef38
7 changed files with 7 additions and 7 deletions

View File

@ -166,7 +166,7 @@
mat-raised-button
(click)="post()"
*ngIf="voucher.id"
[disabled]="voucher.posted || auth.allowed('post-vouchers')"
[disabled]="voucher.posted || !auth.allowed('post-vouchers')"
>
{{ voucher.posted ? 'Posted' : 'Post' }}
</button>