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

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

No files matched your search

@@ -159,7 +159,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>
@@ -92,7 +92,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>
@@ -159,7 +159,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>
@@ -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>
@@ -207,7 +207,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>
@@ -231,7 +231,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>
@@ -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>