5 lines
340 B
MySQL
5 lines
340 B
MySQL
|
UPDATE salix.ACL SET principalId = 'employee' WHERE model = 'Worker' AND principalId = '$subordinate';
|
||
|
INSERT INTO salix.ACL (model, property, accessType, permission, principalType, principalId)
|
||
|
VALUES ('Worker', '__get__advancedSummary', 'READ', 'ALLOW', 'ROLE', 'hr'),
|
||
|
('Worker', '__get__summary', 'READ', 'ALLOW', 'ROLE', 'employee');
|