17 lines
970 B
SQL
17 lines
970 B
SQL
UPDATE `salix`.`ACL` SET principalId ='employee' WHERE id = 122;
|
|
|
|
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
|
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');
|
|
|
|
-- 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');
|
|
|