ACL fixes
gitea/salix/master This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-12-17 12:18:17 +01:00
parent d1341c2758
commit 8ddcd5a654
3 changed files with 13 additions and 9 deletions

View File

@ -87,7 +87,7 @@
<section class="photo" ng-repeat="photo in photos"> <section class="photo" ng-repeat="photo in photos">
<section class="image" on-error-src <section class="image" on-error-src
ng-style="{'background': 'url(/api/dms/' + photo.dmsFk + '/downloadFile?access_token=' + $ctrl.accessToken + ')'}" ng-style="{'background': 'url(/api/dms/' + photo.dmsFk + '/downloadFile?access_token=' + $ctrl.accessToken + ')'}"
zoom-image="dms/{{::photo.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}"> zoom-image="/api/dms/{{::photo.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}">
</section> </section>
</section> </section>
</vn-horizontal> </vn-horizontal>

View File

@ -24,8 +24,7 @@
"url": "/index?q", "url": "/index?q",
"state": "travel.index", "state": "travel.index",
"component": "vn-travel-index", "component": "vn-travel-index",
"description": "Travels", "description": "Travels"
"acl": ["developer"]
}, { }, {
"url": "/:id", "url": "/:id",
"state": "travel.card", "state": "travel.card",

View File

@ -51,7 +51,7 @@
"params": { "params": {
"worker": "$ctrl.worker" "worker": "$ctrl.worker"
}, },
"acl": ["developer"] "acl": ["hr"]
}, { }, {
"url": "/pbx", "url": "/pbx",
"state": "worker.card.pbx", "state": "worker.card.pbx",
@ -81,7 +81,8 @@
"url" : "/department", "url" : "/department",
"state": "worker.department", "state": "worker.department",
"component": "vn-worker-department", "component": "vn-worker-department",
"description": "Departments" "description": "Departments",
"acl": ["hr"]
}, { }, {
"url": "/phones", "url": "/phones",
"state": "worker.card.phones", "state": "worker.card.phones",
@ -89,7 +90,8 @@
"description": "Phones", "description": "Phones",
"params": { "params": {
"worker": "$ctrl.worker" "worker": "$ctrl.worker"
} },
"acl": ["hr"]
}, },
{ {
"url": "/dms", "url": "/dms",
@ -101,7 +103,8 @@
"url": "/index", "url": "/index",
"state": "worker.card.dms.index", "state": "worker.card.dms.index",
"component": "vn-worker-dms-index", "component": "vn-worker-dms-index",
"description": "File management" "description": "File management",
"acl": ["hr"]
}, },
{ {
"url": "/create", "url": "/create",
@ -110,7 +113,8 @@
"description": "Upload file", "description": "Upload file",
"params": { "params": {
"worker": "$ctrl.worker" "worker": "$ctrl.worker"
} },
"acl": ["hr"]
}, },
{ {
"url": "/:dmsId/edit", "url": "/:dmsId/edit",
@ -119,7 +123,8 @@
"description": "Edit file", "description": "Edit file",
"params": { "params": {
"worker": "$ctrl.worker" "worker": "$ctrl.worker"
} },
"acl": ["hr"]
} }
] ]
} }