refs #5666 feat: change models permissions

This commit is contained in:
Javier Segarra 2023-12-05 07:15:22 +01:00
parent 01e7135224
commit 2fe631f078
3 changed files with 15 additions and 19 deletions

View File

@ -139,12 +139,6 @@
"Warehouse": { "Warehouse": {
"dataSource": "vn" "dataSource": "vn"
}, },
"VnUser": {
"dataSource": "vn"
},
"VnRole": {
"dataSource": "vn"
},
"OsTicket": { "OsTicket": {
"dataSource": "osticket" "dataSource": "osticket"
}, },
@ -159,6 +153,12 @@
}, },
"ViaexpressConfig": { "ViaexpressConfig": {
"dataSource": "vn" "dataSource": "vn"
},
"VnUser": {
"dataSource": "vn"
},
"VnRole": {
"dataSource": "vn"
} }
} }

View File

@ -1,8 +1,12 @@
-- Auto-generated SQL script #202311301038 -- Auto-generated SQL script #202311301038
INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId) -- INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
VALUES ('VnRole','*','*','ALLOW','ROLE','$everyone'); -- VALUES ('VnRole','*','*','ALLOW','ROLE','$everyone');
INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId) -- INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
VALUES ('VnRole','*','*','ALLOW','ROLE','employee'); -- VALUES ('VnRole','*','*','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId) VALUES
('VnRole','*','READ','ALLOW','ROLE','employee'),
('VnRole','*','WRITE','ALLOW','ROLE','it');
-- Auto-generated SQL script #202311301203 -- Auto-generated SQL script #202311301203
UPDATE `salix`.`ACL` SET permission='DENY' WHERE model='Role'; DELETE FROM`salix`.`ACL` WHERE model='Role';

View File

@ -25,14 +25,6 @@
"FieldAcl": { "FieldAcl": {
"dataSource": "vn" "dataSource": "vn"
}, },
"Role": {
"dataSource": "vn",
"options": {
"mysql": {
"table": "salix.Role"
}
}
},
"RoleMapping": { "RoleMapping": {
"dataSource": "vn", "dataSource": "vn",
"options": { "options": {