salix/db/changes/234001/01-aclAccount.sql

11 lines
717 B
MySQL
Raw Normal View History

2023-09-21 08:41:20 +00:00
DELETE FROM `salix`.`ACL` WHERE model = 'Account' AND property = '*' AND principalId = 'employee';
2023-09-07 07:03:25 +00:00
2023-09-21 08:41:20 +00:00
INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
2023-09-07 07:03:25 +00:00
VALUES ('Account','findOne','READ','ALLOW','ROLE','employee');
2023-09-21 08:41:20 +00:00
INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
2023-09-07 07:03:25 +00:00
VALUES ('Account','findById','READ','ALLOW','ROLE','employee');
2023-09-21 08:41:20 +00:00
INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
2023-09-07 07:03:25 +00:00
VALUES ('Account','find','READ','ALLOW','ROLE','employee');
2023-09-21 08:41:20 +00:00
INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
2023-09-07 07:03:25 +00:00
VALUES ('Account','exists','READ','ALLOW','ROLE','employee');