#5666 - Loggable to mixin #1826
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
-- INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
|
||||
-- VALUES ('VnRole','*','*','ALLOW','ROLE','employee');
|
||||
jsegarra marked this conversation as resolved
Outdated
juan
commented
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
juan
commented
`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';
|
||||
|
||||
|
|
|
@ -25,14 +25,6 @@
|
|||
"FieldAcl": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"Role": {
|
||||
"dataSource": "vn",
|
||||
"options": {
|
||||
"mysql": {
|
||||
"table": "salix.Role"
|
||||
}
|
||||
}
|
||||
},
|
||||
"RoleMapping": {
|
||||
"dataSource": "vn",
|
||||
"options": {
|
||||
|
|
Loading…
Reference in New Issue
Este ACL permite a cualquiera modificar los roles!
Aplicar los mismos ACLs que al modelo
Role
en producción.