diff --git a/services/db/install/changes/1.2-CHECK/22-ACL.sql b/services/db/install/changes/1.2-CHECK/22-ACL.sql new file mode 100644 index 0000000000..d388defa93 --- /dev/null +++ b/services/db/install/changes/1.2-CHECK/22-ACL.sql @@ -0,0 +1,20 @@ +INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId) +VALUES ('Zone','*','READ','ALLOW','ROLE','employee'); +INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId) +VALUES ('ZoneGeo','*','READ','ALLOW','ROLE','employee'); +INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId) +VALUES ('ZoneCalendar','*','READ','ALLOW','ROLE','employee'); +INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId) +VALUES ('ZoneIncluded','*','READ','ALLOW','ROLE','employee'); +INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId) +VALUES ('LabourHoliday','*','READ','ALLOW','ROLE','employee'); +INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId) +VALUES ('LabourHolidayLegend','*','READ','ALLOW','ROLE','employee'); +INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId) +VALUES ('LabourHolidayType','*','READ','ALLOW','ROLE','employee'); +INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId) +VALUES ('Zone','*','WRITE','ALLOW','ROLE','deliveryBoss'); +INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId) +VALUES ('ZoneCalendar','*','WRITE','ALLOW','ROLE','deliveryBoss'); +INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId) +VALUES ('ZoneIncluded','*','WRITE','ALLOW','ROLE','deliveryBoss');