feat: refs #8388 add ACL check for adding invoices in EntryPreAccount.vue
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Jorge Penadés 2025-04-28 16:13:29 +02:00
parent d2452caef8
commit d1f676e6ff
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@ import InvoiceInDescriptorProxy from '../InvoiceIn/Card/InvoiceInDescriptorProxy
import { useStateStore } from 'src/stores/useStateStore';
import { downloadFile } from 'src/composables/downloadFile';
import { useRoute } from 'vue-router';
import { useAcl } from 'src/composables/useAcl';
const route = useRoute();
const { t } = useI18n();
@ -395,6 +396,7 @@ async function createInvoice() {
>
<template #top-left>
<QBtn
v-if="useAcl().hasAcl('Entry', 'addInvoiceIn', 'WRITE')"
data-cy="preAccount_btn"
icon="account_balance"
color="primary"