2023-12-22 14:19:45 +00:00
|
|
|
DELETE FROM `salix`.`ACL`
|
|
|
|
WHERE model = 'VnUser'
|
|
|
|
AND property = 'renewToken';
|
|
|
|
|
2023-11-28 13:48:03 +00:00
|
|
|
INSERT INTO `account`.`role` (name, description)
|
|
|
|
VALUES ('timeControl','Tablet para fichar');
|
|
|
|
|
|
|
|
INSERT INTO `account`.`roleInherit` (role, inheritsFrom)
|
|
|
|
VALUES (127, 11);
|
|
|
|
|
|
|
|
INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
|
|
|
|
VALUES
|
2023-11-29 07:37:56 +00:00
|
|
|
('WorkerTimeControl', 'login', 'READ', 'ALLOW', 'ROLE', 'timeControl'),
|
|
|
|
('WorkerTimeControl', 'getClockIn', 'READ', 'ALLOW', 'ROLE', 'timeControl'),
|
2023-12-22 14:19:45 +00:00
|
|
|
('WorkerTimeControl', 'clockIn', 'WRITE', 'ALLOW', 'ROLE', 'timeControl');
|
2023-11-28 13:48:03 +00:00
|
|
|
|
|
|
|
CALL `account`.`role_sync`();
|