salix/services/db/install/changes/1.1.0/03-acl.sql

7 lines
711 B
SQL

UPDATE `salix`.`ACL` SET `model`='ClaimEnd' WHERE `id`='96';
UPDATE `salix`.`ACL` SET `model`='ClaimEnd' WHERE `id`='97';
UPDATE `salix`.`ACL` SET `model`='ClaimBeginning', `accessType`='*' WHERE `id`='98';
UPDATE `salix`.`ACL` SET `model`='ClaimDevelopment' WHERE `id`='99';
UPDATE `salix`.`ACL` SET `model`='ClaimDevelopment' WHERE `id`='100';
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (101, 'Claim', '*', '*', 'ALLOW', 'ROLE', 'employee');
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (102, 'Claim', 'createFromSales', '*', 'ALLOW', 'ROLE', 'employee');