Fix: Vouchers post was not allowed as the check was wrong.
This commit is contained in:
@ -159,7 +159,7 @@
|
|||||||
mat-raised-button
|
mat-raised-button
|
||||||
(click)="post()"
|
(click)="post()"
|
||||||
*ngIf="voucher.id"
|
*ngIf="voucher.id"
|
||||||
[disabled]="voucher.posted || auth.allowed('post-vouchers')"
|
[disabled]="voucher.posted || !auth.allowed('post-vouchers')"
|
||||||
>
|
>
|
||||||
{{ voucher.posted ? 'Posted' : 'Post' }}
|
{{ voucher.posted ? 'Posted' : 'Post' }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@ -92,7 +92,7 @@
|
|||||||
mat-raised-button
|
mat-raised-button
|
||||||
(click)="post()"
|
(click)="post()"
|
||||||
*ngIf="voucher.id"
|
*ngIf="voucher.id"
|
||||||
[disabled]="voucher.posted || auth.allowed('post-vouchers')"
|
[disabled]="voucher.posted || !auth.allowed('post-vouchers')"
|
||||||
>
|
>
|
||||||
{{ voucher.posted ? 'Posted' : 'Post' }}
|
{{ voucher.posted ? 'Posted' : 'Post' }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@ -159,7 +159,7 @@
|
|||||||
mat-raised-button
|
mat-raised-button
|
||||||
(click)="post()"
|
(click)="post()"
|
||||||
*ngIf="voucher.id"
|
*ngIf="voucher.id"
|
||||||
[disabled]="voucher.posted || auth.allowed('post-vouchers')"
|
[disabled]="voucher.posted || !auth.allowed('post-vouchers')"
|
||||||
>
|
>
|
||||||
{{ voucher.posted ? 'Posted' : 'Post' }}
|
{{ voucher.posted ? 'Posted' : 'Post' }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@ -166,7 +166,7 @@
|
|||||||
mat-raised-button
|
mat-raised-button
|
||||||
(click)="post()"
|
(click)="post()"
|
||||||
*ngIf="voucher.id"
|
*ngIf="voucher.id"
|
||||||
[disabled]="voucher.posted || auth.allowed('post-vouchers')"
|
[disabled]="voucher.posted || !auth.allowed('post-vouchers')"
|
||||||
>
|
>
|
||||||
{{ voucher.posted ? 'Posted' : 'Post' }}
|
{{ voucher.posted ? 'Posted' : 'Post' }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@ -207,7 +207,7 @@
|
|||||||
mat-raised-button
|
mat-raised-button
|
||||||
(click)="post()"
|
(click)="post()"
|
||||||
*ngIf="voucher.id"
|
*ngIf="voucher.id"
|
||||||
[disabled]="voucher.posted || auth.allowed('post-vouchers')"
|
[disabled]="voucher.posted || !auth.allowed('post-vouchers')"
|
||||||
>
|
>
|
||||||
{{ voucher.posted ? 'Posted' : 'Post' }}
|
{{ voucher.posted ? 'Posted' : 'Post' }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@ -231,7 +231,7 @@
|
|||||||
mat-raised-button
|
mat-raised-button
|
||||||
(click)="post()"
|
(click)="post()"
|
||||||
*ngIf="voucher.id"
|
*ngIf="voucher.id"
|
||||||
[disabled]="voucher.posted || auth.allowed('post-vouchers')"
|
[disabled]="voucher.posted || !auth.allowed('post-vouchers')"
|
||||||
>
|
>
|
||||||
{{ voucher.posted ? 'Posted' : 'Post' }}
|
{{ voucher.posted ? 'Posted' : 'Post' }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@ -166,7 +166,7 @@
|
|||||||
mat-raised-button
|
mat-raised-button
|
||||||
(click)="post()"
|
(click)="post()"
|
||||||
*ngIf="voucher.id"
|
*ngIf="voucher.id"
|
||||||
[disabled]="voucher.posted || auth.allowed('post-vouchers')"
|
[disabled]="voucher.posted || !auth.allowed('post-vouchers')"
|
||||||
>
|
>
|
||||||
{{ voucher.posted ? 'Posted' : 'Post' }}
|
{{ voucher.posted ? 'Posted' : 'Post' }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user