From 15f43c248e782eacfbabe5cb576703b722279b3e Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Thu, 31 Jan 2019 07:18:07 +0100 Subject: [PATCH] agency module ACL's --- .../db/install/changes/1.2-CHECK/22-ACL.sql | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 services/db/install/changes/1.2-CHECK/22-ACL.sql 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 000000000..d388defa9 --- /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');