2963 - Show section to all employee #655

Merged
carlosjr merged 2 commits from 2963-creditInsurance_acl into dev 2021-06-15 14:43:47 +00:00
3 changed files with 7 additions and 3 deletions

View File

@ -51,6 +51,8 @@
</vn-data-viewer>
<vn-float-button
ng-if="$ctrl.canCreateNew()"
vn-acl="insurance"
vn-acl-action="remove"
vn-tooltip="New contract"
fixed-bottom-right
ui-sref="client.card.creditInsurance.create"

View File

@ -30,6 +30,8 @@
</div>
<a
ng-if="!$ctrl.isClosed"
vn-acl="insurance"
vn-acl-action="remove"
ui-sref="client.card.creditInsurance.insurance.create({classificationId: {{$ctrl.$params.classificationId}}})"
fixed-bottom-right
vn-tooltip="New credit"

View File

@ -240,14 +240,12 @@
"url": "/credit-insurance",
"abstract": true,
"state": "client.card.creditInsurance",
"component": "ui-view",
"acl": ["insurance"]
"component": "ui-view"
}, {
"url": "/index",
"state": "client.card.creditInsurance.index",
"component": "vn-client-credit-insurance-index",
"description": "Credit contracts",
"acl": ["insurance"],
"params": {
"client": "$ctrl.client"
}
@ -256,6 +254,7 @@
"state": "client.card.creditInsurance.create",
"component": "vn-client-credit-insurance-create",
"description": "New insurance",
"acl": ["insurance"],
"params": {
"client": "$ctrl.client"
}
@ -279,6 +278,7 @@
"state": "client.card.creditInsurance.insurance.create",
"component": "vn-client-credit-insurance-insurance-create",
"description": "New credit",
"acl": ["insurance"],
"params": {
"client": "$ctrl.client"
}