From fcc8ab423631228509e243c56c6d9801974ffd28 Mon Sep 17 00:00:00 2001 From: joan Date: Fri, 30 Apr 2021 10:08:40 +0200 Subject: [PATCH] Added model ACL --- db/changes/10310-mothersDay/00-ACL.sql | 2 ++ modules/supplier/back/models/supplier-address.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 db/changes/10310-mothersDay/00-ACL.sql diff --git a/db/changes/10310-mothersDay/00-ACL.sql b/db/changes/10310-mothersDay/00-ACL.sql new file mode 100644 index 000000000..a2ae1e40f --- /dev/null +++ b/db/changes/10310-mothersDay/00-ACL.sql @@ -0,0 +1,2 @@ +INSERT INTO salix.ACL (model, property, accessType, permission, principalType, principalId) +VALUES ('SupplierAddress', '*', '*', 'ALLOW', 'ROLE', 'employee'); diff --git a/modules/supplier/back/models/supplier-address.json b/modules/supplier/back/models/supplier-address.json index d1cee2d50..302f15e4b 100644 --- a/modules/supplier/back/models/supplier-address.json +++ b/modules/supplier/back/models/supplier-address.json @@ -14,7 +14,7 @@ }, "properties": { "id": { - "type": "Number", + "type": "number", "id": true, "description": "Identifier" },