Fixed permission names in front end as they have to be kebab cased

This commit is contained in:
2020-05-30 10:29:23 +05:30
parent 1a553146e2
commit a5fcb2026c
25 changed files with 34 additions and 57 deletions

View File

@ -146,7 +146,7 @@
{{(voucher.id) ? 'Update' : 'Save'}}
</button>
<button mat-raised-button (click)="post()" *ngIf="voucher.id"
[disabled]="voucher.posted || auth.user.perms.indexOf('Post Vouchers') === -1">
[disabled]="voucher.posted || auth.user.perms.indexOf('post-vouchers') === -1">
{{(voucher.posted) ? 'Posted' : 'Post'}}
</button>
<button mat-raised-button color="warn" (click)="confirmDelete()" *ngIf="voucher.id" [disabled]="!canSave()">