From 51fec906071e3f62300c780ecd48259aa66c2120 Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 2 Aug 2024 12:04:19 +0200 Subject: [PATCH] feat: refs #4074 useAcl in vnSelectDialog --- src/components/CreateNewPostcodeForm.vue | 2 +- src/components/VnSelectProvince.vue | 2 +- src/pages/Customer/Card/CustomerBillingData.vue | 2 +- src/pages/Customer/Card/CustomerFiscalData.vue | 2 +- src/pages/Customer/CustomerCreate.vue | 2 +- src/pages/Customer/CustomerList.vue | 2 +- src/pages/Customer/components/CustomerAddressCreate.vue | 2 +- src/pages/Customer/components/CustomerAddressEdit.vue | 2 +- src/pages/Supplier/Card/SupplierAddressesCreate.vue | 2 +- src/pages/Supplier/Card/SupplierFiscalData.vue | 2 +- src/pages/Worker/WorkerList.vue | 4 ++-- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/CreateNewPostcodeForm.vue b/src/components/CreateNewPostcodeForm.vue index e6247226e..14f629c42 100644 --- a/src/components/CreateNewPostcodeForm.vue +++ b/src/components/CreateNewPostcodeForm.vue @@ -104,7 +104,7 @@ async function setProvince(id, data) { option-label="name" option-value="id" :rules="validate('postcode.city')" - :roles-allowed-to-create="['deliveryAssistant']" + :acls="[{ model: 'Town', props: '*', accessType: 'WRITE' }]" :emit-value="false" clearable > diff --git a/src/components/VnSelectProvince.vue b/src/components/VnSelectProvince.vue index ea10ace19..2f08db611 100644 --- a/src/components/VnSelectProvince.vue +++ b/src/components/VnSelectProvince.vue @@ -38,7 +38,7 @@ async function onProvinceCreated(_, data) { hide-selected v-model="provinceFk" :rules="validate && validate('postcode.provinceFk')" - :roles-allowed-to-create="['deliveryAssistant']" + :acls="[{ model: 'Province', props: '*', accessType: 'WRITE' }]" >