refs #5881 createRolAndGrantAcl #1715

Merged
pablone merged 5 commits from 5881-createRolClaim into dev 2023-08-24 11:49:45 +00:00
1 changed files with 8 additions and 9 deletions
Showing only changes of commit c5006b6be6 - Show all commits

View File

@ -22,12 +22,11 @@ DELETE FROM `salix`.`ACL`
);
INSERT INTO `salix`.`ACL` (`model`,`property`,`accessType`,`permission`,`principalType`,`principalid`)
pablone marked this conversation as resolved
Review

Asi igual te has rallat un poc no??
Si haveres ficat els 4 insert jo crec que quedava mes clar i te lleves el select no?

Asi igual te has rallat un poc no?? Si haveres ficat els 4 insert jo crec que quedava mes clar i te lleves el select no?
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');