feat: refs #8388 add ACL check for adding invoices in EntryPreAccount.vue
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
d2452caef8
commit
d1f676e6ff
|
@ -20,6 +20,7 @@ import InvoiceInDescriptorProxy from '../InvoiceIn/Card/InvoiceInDescriptorProxy
|
||||||
import { useStateStore } from 'src/stores/useStateStore';
|
import { useStateStore } from 'src/stores/useStateStore';
|
||||||
import { downloadFile } from 'src/composables/downloadFile';
|
import { downloadFile } from 'src/composables/downloadFile';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
|
import { useAcl } from 'src/composables/useAcl';
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
@ -395,6 +396,7 @@ async function createInvoice() {
|
||||||
>
|
>
|
||||||
<template #top-left>
|
<template #top-left>
|
||||||
<QBtn
|
<QBtn
|
||||||
|
v-if="useAcl().hasAcl('Entry', 'addInvoiceIn', 'WRITE')"
|
||||||
data-cy="preAccount_btn"
|
data-cy="preAccount_btn"
|
||||||
icon="account_balance"
|
icon="account_balance"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
|
Loading…
Reference in New Issue