2019-05-22 09:59:07 +00:00
|
|
|
UPDATE `salix`.`ACL` SET principalId ='employee' WHERE id = 122;
|
|
|
|
|
2019-05-17 11:27:51 +00:00
|
|
|
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
2019-05-22 09:59:07 +00:00
|
|
|
VALUES
|
|
|
|
(167, 'Worker', 'isSubordinate', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
|
|
(168, 'Worker', 'mySubordinates', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
|
|
(169, 'WorkerTimeControl', 'filter', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
|
|
(170, 'WorkerTimeControl', 'addTime', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
|
|
|
(171, 'TicketServiceType', '*', 'WRITE', 'ALLOW', 'ROLE', 'administrative');
|
2019-05-17 11:27:51 +00:00
|
|
|
|
2019-05-23 09:39:14 +00:00
|
|
|
-- ONLY FOR ACL ALREADY ON PRODUCTION
|
|
|
|
INSERT IGNORE INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
|
|
|
VALUES
|
|
|
|
(172, 'Sms', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
|
|
(173, 'Sms', 'send', 'WRITE', 'ALLOW', 'ROLE', 'employee');
|
|
|
|
|