Merge pull request 'Added permissions to role administrative' (#543) from 2782-Add_permisions_administrative_entry_module into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #543
Reviewed-by: Carlos Jimenez Ruiz <carlosjr@verdnatura.es>
This commit is contained in:
Carlos Jimenez Ruiz 2021-02-12 16:01:39 +00:00
commit e049d6ccfb
2 changed files with 6 additions and 3 deletions

View File

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

View File

@ -31,19 +31,19 @@
"state": "entry.index",
"component": "vn-entry-index",
"description": "Entries",
"acl": ["buyer"]
"acl": ["buyer", "administrative"]
}, {
"url": "/latest-buys?q",
"state": "entry.latestBuys",
"component": "vn-entry-latest-buys",
"description": "Latest buys",
"acl": ["buyer"]
"acl": ["buyer", "administrative"]
}, {
"url": "/create?supplierFk&travelFk&companyFk",
"state": "entry.create",
"component": "vn-entry-create",
"description": "New entry",
"acl": ["buyer"]
"acl": ["buyer", "administrative"]
}, {
"url": "/:id",
"state": "entry.card",