#5666 - Loggable to mixin #1826

Merged
alexm merged 29 commits from 5666-loggable_to_mixin into dev 2024-01-04 09:21:57 +00:00
3 changed files with 15 additions and 19 deletions
Showing only changes of commit 2fe631f078 - Show all commits

View File

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

View File

@ -1,8 +1,12 @@
-- Auto-generated SQL script #202311301038
INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
VALUES ('VnRole','*','*','ALLOW','ROLE','$everyone');
INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
VALUES ('VnRole','*','*','ALLOW','ROLE','employee');
-- INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
-- VALUES ('VnRole','*','*','ALLOW','ROLE','$everyone');
jsegarra marked this conversation as resolved Outdated
Outdated
Review

Este ACL permite a cualquiera modificar los roles!

Aplicar los mismos ACLs que al modelo Role en producción.

**Este ACL permite a cualquiera modificar los roles!** Aplicar los mismos ACLs que al modelo `Role` en producción.
-- INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
-- VALUES ('VnRole','*','*','ALLOW','ROLE','employee');
jsegarra marked this conversation as resolved Outdated
Outdated
Review

Este ACL permite a los empleados modificar los roles!

Debe ser solo READ

**Este ACL permite a los empleados modificar los roles!** Debe ser solo READ
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId) VALUES
('VnRole','*','READ','ALLOW','ROLE','employee'),
('VnRole','*','WRITE','ALLOW','ROLE','it');
jsegarra marked this conversation as resolved Outdated
Outdated
Review

DELETE FROM salix.ACL WHERE model='Role';

`DELETE FROM salix.ACL WHERE model='Role';`
-- 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": {
"dataSource": "vn"
},
"Role": {
"dataSource": "vn",
"options": {
"mysql": {
"table": "salix.Role"
}
}
},
"RoleMapping": {
"dataSource": "vn",
"options": {