ACl fixes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-03-10 11:04:56 +01:00
parent b39ec70a2c
commit a7c2e08f8f
2 changed files with 16 additions and 7 deletions

View File

@ -1,6 +1,9 @@
<div fixed-bottom-right> <div fixed-bottom-right>
<vn-vertical style="align-items: center;"> <vn-vertical style="align-items: center;">
<a ui-sref="entry.card.buy.import" vn-bind="+"> <a ui-sref="entry.card.buy.import"
vn-bind="+"
vn-acl="['buyer']"
vn-acl-action="remove">
<vn-button class="round md vn-mb-sm" <vn-button class="round md vn-mb-sm"
icon="publish" icon="publish"
vn-tooltip="Import buys" vn-tooltip="Import buys"

View File

@ -56,7 +56,8 @@
"description": "Summary", "description": "Summary",
"params": { "params": {
"entry": "$ctrl.entry" "entry": "$ctrl.entry"
} },
"acl": ["buyer", "administrative"]
}, { }, {
"url": "/basic-data", "url": "/basic-data",
"state": "entry.card.basicData", "state": "entry.card.basicData",
@ -64,7 +65,8 @@
"description": "Basic data", "description": "Basic data",
"params": { "params": {
"entry": "$ctrl.entry" "entry": "$ctrl.entry"
} },
"acl": ["buyer", "administrative"]
},{ },{
"url": "/observation", "url": "/observation",
"state": "entry.card.observation", "state": "entry.card.observation",
@ -72,12 +74,14 @@
"description": "Notes", "description": "Notes",
"params": { "params": {
"entry": "$ctrl.entry" "entry": "$ctrl.entry"
} },
"acl": ["buyer", "administrative"]
},{ },{
"url" : "/log", "url" : "/log",
"state": "entry.card.log", "state": "entry.card.log",
"component": "vn-entry-log", "component": "vn-entry-log",
"description": "Log" "description": "Log",
"acl": ["buyer", "administrative"]
}, },
{ {
"url": "/buy", "url": "/buy",
@ -92,7 +96,8 @@
"description": "Buy", "description": "Buy",
"params": { "params": {
"entry": "$ctrl.entry" "entry": "$ctrl.entry"
} },
"acl": ["buyer", "administrative"]
}, },
{ {
"url" : "/import", "url" : "/import",
@ -101,7 +106,8 @@
"description": "Import buys", "description": "Import buys",
"params": { "params": {
"entry": "$ctrl.entry" "entry": "$ctrl.entry"
} },
"acl": ["buyer"]
} }
] ]
} }