Fix problems with ACL and the autocomplete of bank entity
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Jorge Padawan 2021-01-08 16:45:20 +01:00
parent 403964934d
commit b8827ec63d
2 changed files with 2 additions and 8 deletions

View File

@ -1 +1 @@
INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES ('SupplierAccount', '*', 'WRITE', 'ALLOW', 'ROLE', 'administrative');
INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES ('SupplierAccount', '*', '*', 'ALLOW', 'ROLE', 'administrative');

View File

@ -12,12 +12,6 @@
data="$ctrl.supplierAccounts"
form="form">
</vn-watcher>
<vn-crud-model
url="BankEntities"
fields="['countryFk','id','name', 'bic']"
data="bankEntities"
auto-load="true">
</vn-crud-model>
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal ng-repeat="supplierAccount in $ctrl.supplierAccounts">
@ -31,7 +25,7 @@
label="Bank entity"
initial-data="$ctrl.getName(bankEntity)"
ng-model="supplierAccount.bankEntityFk"
data="bankEntities"
url="BankEntities"
on-change="$ctrl.getName(bankEntity)"
show-field="name"
rule>