From ea60ca5bc146ad22c99b75e2d7280556e28393c7 Mon Sep 17 00:00:00 2001 From: Agnieszka Figiel Date: Wed, 25 Oct 2023 12:36:50 +0200 Subject: [PATCH] Permissions for public role to data info endpoints --- ...figuration_content_types##api##data-info.data-info.json | 7 +++---- cms/config/sync/user-role.public.json | 6 ++++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##data-info.data-info.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##data-info.data-info.json index 7f764618..6cfd0727 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##data-info.data-info.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##data-info.data-info.json @@ -111,16 +111,15 @@ "list": [ "id", "slug", - "content" + "content", + "createdAt" ], "edit": [ [ { "name": "slug", "size": 6 - } - ], - [ + }, { "name": "content", "size": 6 diff --git a/cms/config/sync/user-role.public.json b/cms/config/sync/user-role.public.json index bb43518a..56e18c5c 100644 --- a/cms/config/sync/user-role.public.json +++ b/cms/config/sync/user-role.public.json @@ -3,6 +3,12 @@ "description": "Default role given to unauthenticated user.", "type": "public", "permissions": [ + { + "action": "api::data-info.data-info.find" + }, + { + "action": "api::data-info.data-info.findOne" + }, { "action": "api::fishing-protection-level-stat.fishing-protection-level-stat.find" },