From 15c7c0cb4b0f45d805db1ada7a56865a6bb75e53 Mon Sep 17 00:00:00 2001 From: carlosjr Date: Tue, 29 Jun 2021 15:31:58 +0200 Subject: [PATCH] read acl set on the model --- back/models/account.json | 6 ++++-- modules/client/back/models/business-type.json | 8 +++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/back/models/account.json b/back/models/account.json index 9cac20bc0..b59cf39c2 100644 --- a/back/models/account.json +++ b/back/models/account.json @@ -80,13 +80,15 @@ "principalType": "ROLE", "principalId": "$everyone", "permission": "ALLOW" - }, { + }, + { "property": "logout", "accessType": "EXECUTE", "principalType": "ROLE", "principalId": "$authenticated", "permission": "ALLOW" - }, { + }, + { "property": "validateToken", "accessType": "EXECUTE", "principalType": "ROLE", diff --git a/modules/client/back/models/business-type.json b/modules/client/back/models/business-type.json index ff18c5c76..e8399ed68 100644 --- a/modules/client/back/models/business-type.json +++ b/modules/client/back/models/business-type.json @@ -14,5 +14,11 @@ "description": { "type": "string" } - } + }, + "acls": [{ + "accessType": "READ", + "principalType": "ROLE", + "principalId": "$everyone", + "permission": "ALLOW" + }] } \ No newline at end of file