refs #5881 insertAcl
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Pablo Natek 2023-08-24 11:31:12 +02:00
parent c997ad6ccb
commit c5006b6be6
1 changed files with 8 additions and 9 deletions

View File

@ -22,12 +22,11 @@ DELETE FROM `salix`.`ACL`
);
INSERT INTO `salix`.`ACL` (`model`,`property`,`accessType`,`permission`,`principalType`,`principalid`)
SELECT 'Claim',`property`,'READ','ALLOW','ROLE','claimViewer'
FROM `salix`.`ACL`
WHERE `property` IN (
'filter',
'find',
'findById',
'getSummary'
)
GROUP BY `property`;
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');