14 lines
533 B
MySQL
14 lines
533 B
MySQL
|
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
|
||
|
('workerTimeControl', 'login', 'READ', 'ALLOW', 'ROLE', '*'),
|
||
|
('workerTimeControl', 'getClockIn', 'READ', 'ALLOW', 'ROLE', '*'),
|
||
|
('workerTimeControl', 'clockIn', 'WRITE', 'ALLOW', 'ROLE', '*');
|
||
|
|
||
|
CALL `account`.`role_sync`();
|