dev #1731

Merged
jgallego merged 105 commits from dev into test 2023-08-31 09:13:29 +00:00
1 changed files with 25 additions and 25 deletions
Showing only changes of commit 3694fcbbfb - Show all commits

View File

@ -1,33 +1,33 @@
INSERT INTO `account`.`role` (`id`, `name`, `description`, `hasLogin`)
VALUES (122, 'claimViewer','Trabajadores que consulta las reclamaciones ',1);
VALUES ('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);
SELECT `r`.`id`, `r2`.`id`
FROM `account`.`role` `r`
JOIN `account`.`role` `r2` ON `r2`.`name` = 'claimViewer'
WHERE `r`.`name` IN (
'salesPerson',
'buyer',
'deliveryBoss',
'handmadeBoss'
)
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';
AND `property` IN (
'filter',
'find',
'findById',
'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');
SELECT 'Claim',`property`,'READ','ALLOW','ROLE','claimViewer'
FROM `salix`.`ACL`
WHERE `property` IN (
'filter',
'find',
'findById',
'getSummary'
)
GROUP BY `property`;