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