salix/db/changes/240201/00-timecontrol.sql

15 lines
638 B
MySQL
Raw Normal View History

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-05 14:57:42 +00:00
('WorkerTimeControl', 'clockIn', 'WRITE', 'ALLOW', 'ROLE', 'timeControl'),
('VnUser', 'renewToken', 'WRITE', 'ALLOW', 'ROLE', 'timeControl');
2023-11-28 13:48:03 +00:00
CALL `account`.`role_sync`();