27 lines
1.5 KiB
SQL
27 lines
1.5 KiB
SQL
DELETE FROM `salix`.`ACL`
|
|
WHERE
|
|
model = 'Route'
|
|
AND property = '*'
|
|
AND accessType = 'READ';
|
|
|
|
INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
|
VALUES
|
|
('Route', 'find', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
('Route', 'findById', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
('Route', 'findOne', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
('Route', 'getRoutesByWorker', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
('Route', 'canViewAllRoute', 'READ', 'ALLOW', 'ROLE', 'deliveryBoss'),
|
|
('Route', 'cmr', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
('Route', 'downloadCmrsZip', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
('Route', 'downloadZip', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
('Route', 'filter', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
('Route', 'getByWorker', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
('Route', 'getDeliveryPoint', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
('Route', 'getExternalCmrs', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
('Route', 'getSuggestedTickets', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
('Route', 'getTickets', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
('Route', 'guessPriority', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
|
('Route', 'insertTicket', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
|
('Route', 'getDeliveryPoint', 'READ', 'ALLOW', 'ROLE', 'deliveryBoss'),
|
|
('Route', 'summary', 'READ', 'ALLOW', 'ROLE', 'employee');
|