34 lines
1.5 KiB
SQL
34 lines
1.5 KiB
SQL
INSERT INTO `account`.`role` (`id`, `name`, `description`, `hasLogin`)
|
|
VALUES (122, 'claimViewer','Trabajadores que consulta las reclamaciones ',1);
|
|
|
|
INSERT INTO `account`.`roleInherit` (`role`,`inheritsFrom`)
|
|
VALUES (35, 122);
|
|
INSERT INTO `account`.`roleInherit` (`role`,`inheritsFrom`)
|
|
VALUES (18, 122);
|
|
INSERT INTO `account`.`roleInherit` (`role`,`inheritsFrom`)
|
|
VALUES (41, 122);
|
|
INSERT INTO `account`.`roleInherit` (`role`,`inheritsFrom`)
|
|
VALUES (57, 122);
|
|
|
|
DELETE FROM `salix`.`ACL`
|
|
WHERE `model`= 'claim'
|
|
AND `property` = 'filter';
|
|
DELETE FROM `salix`.`ACL`
|
|
WHERE `model`= 'claim'
|
|
AND `property` = 'find';
|
|
DELETE FROM `salix`.`ACL`
|
|
WHERE `model`= 'claim'
|
|
AND `property` = 'findById';
|
|
DELETE FROM `salix`.`ACL`
|
|
WHERE `model`= 'claim'
|
|
AND `property` = 'getSummary';
|
|
|
|
INSERT INTO `salix`.`ACL` (`model`,`property`,`accessType`,`permission`,`principalType`,`principalid`)
|
|
VALUES ('Claim','filter','READ','ALLOW','ROLE','claimViewer');
|
|
INSERT INTO `salix`.`ACL` (`model`,`property`,`accessType`,`permission`,`principalType`,`principalid`)
|
|
VALUES ('Claim','find','READ','ALLOW','ROLE','claimViewer');
|
|
INSERT INTO `salix`.`ACL` (`model`,`property`,`accessType`,`permission`,`principalType`,`principalid`)
|
|
VALUES ('Claim','findById','READ','ALLOW','ROLE','claimViewer');
|
|
INSERT INTO `salix`.`ACL` (`model`,`property`,`accessType`,`permission`,`principalType`,`principalid`)
|
|
VALUES ('Claim','getSummary','READ','ALLOW','ROLE','claimViewer');
|