From be34032ddcc838ec3e7798ba5ce688472906e1fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Thu, 10 Oct 2024 08:34:14 +0200 Subject: [PATCH] Update access to authors and editors --- cms/config/sync/admin-role.strapi-author.json | 294 ++++++++- cms/config/sync/admin-role.strapi-editor.json | 591 +++++++++++++++--- 2 files changed, 774 insertions(+), 111 deletions(-) diff --git a/cms/config/sync/admin-role.strapi-author.json b/cms/config/sync/admin-role.strapi-author.json index 40f9f913..1f6d4610 100644 --- a/cms/config/sync/admin-role.strapi-author.json +++ b/cms/config/sync/admin-role.strapi-author.json @@ -513,6 +513,78 @@ ], "actionParameters": {} }, + { + "action": "plugin::content-manager.explorer.create", + "subject": "api::environment.environment", + "properties": { + "fields": [ + "name", + "slug" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.delete", + "subject": "api::environment.environment", + "properties": { + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.read", + "subject": "api::environment.environment", + "properties": { + "fields": [ + "name", + "slug" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.update", + "subject": "api::environment.environment", + "properties": { + "fields": [ + "name", + "slug" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, { "action": "plugin::content-manager.explorer.create", "subject": "api::fishing-protection-level-stat.fishing-protection-level-stat", @@ -769,8 +841,7 @@ "metadata.resolution", "metadata.content_date", "metadata.license", - "dataset", - "legend_config" + "dataset" ], "locales": [] }, @@ -810,8 +881,7 @@ "metadata.resolution", "metadata.content_date", "metadata.license", - "dataset", - "legend_config" + "dataset" ], "locales": [] }, @@ -836,8 +906,7 @@ "metadata.resolution", "metadata.content_date", "metadata.license", - "dataset", - "legend_config" + "dataset" ], "locales": [] }, @@ -853,17 +922,16 @@ "fields": [ "code", "name", + "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", "protection_coverage_stats", + "total_terrestrial_area", "name_es", - "name_fr", - "total_marine_area", - "total_terrestrial_area" - ], - "locales": [] + "name_fr" + ] }, "conditions": [ "admin::is-creator" @@ -873,13 +941,7 @@ { "action": "plugin::content-manager.explorer.delete", "subject": "api::location.location", - "properties": { - "locales": [ - "en", - "es", - "fr" - ] - }, + "properties": {}, "conditions": [ "admin::is-creator" ], @@ -892,17 +954,16 @@ "fields": [ "code", "name", + "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", "protection_coverage_stats", + "total_terrestrial_area", "name_es", - "name_fr", - "total_marine_area", - "total_terrestrial_area" - ], - "locales": [] + "name_fr" + ] }, "conditions": [ "admin::is-creator" @@ -916,17 +977,91 @@ "fields": [ "code", "name", + "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", "protection_coverage_stats", + "total_terrestrial_area", "name_es", - "name_fr", - "total_marine_area", - "total_terrestrial_area" + "name_fr" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.create", + "subject": "api::mpa-iucn-category.mpa-iucn-category", + "properties": { + "fields": [ + "slug", + "name", + "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.delete", + "subject": "api::mpa-iucn-category.mpa-iucn-category", + "properties": { + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.read", + "subject": "api::mpa-iucn-category.mpa-iucn-category", + "properties": { + "fields": [ + "slug", + "name", + "info" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.update", + "subject": "api::mpa-iucn-category.mpa-iucn-category", + "properties": { + "fields": [ + "slug", + "name", + "info" + ], + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -1001,9 +1136,9 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", - "area" + "area", + "location" ] }, "conditions": [ @@ -1025,9 +1160,9 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", - "area" + "area", + "location" ] }, "conditions": [ @@ -1040,9 +1175,9 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", - "area" + "area", + "location" ] }, "conditions": [ @@ -1113,6 +1248,99 @@ ], "actionParameters": {} }, + { + "action": "plugin::content-manager.explorer.create", + "subject": "api::pa.pa", + "properties": { + "fields": [ + "name", + "area", + "year", + "protection_status", + "bbox", + "children", + "data_source", + "mpaa_establishment_stage", + "location", + "wdpaid", + "mpaa_protection_level", + "iucn_category", + "designation", + "environment", + "coverage", + "parent" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.delete", + "subject": "api::pa.pa", + "properties": {}, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.read", + "subject": "api::pa.pa", + "properties": { + "fields": [ + "name", + "area", + "year", + "protection_status", + "bbox", + "children", + "data_source", + "mpaa_establishment_stage", + "location", + "wdpaid", + "mpaa_protection_level", + "iucn_category", + "designation", + "environment", + "coverage", + "parent" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.update", + "subject": "api::pa.pa", + "properties": { + "fields": [ + "name", + "area", + "year", + "protection_status", + "bbox", + "children", + "data_source", + "mpaa_establishment_stage", + "location", + "wdpaid", + "mpaa_protection_level", + "iucn_category", + "designation", + "environment", + "coverage", + "parent" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, { "action": "plugin::content-manager.explorer.create", "subject": "api::protection-coverage-stat.protection-coverage-stat", diff --git a/cms/config/sync/admin-role.strapi-editor.json b/cms/config/sync/admin-role.strapi-editor.json index 879d976f..e3359efd 100644 --- a/cms/config/sync/admin-role.strapi-editor.json +++ b/cms/config/sync/admin-role.strapi-editor.json @@ -86,7 +86,11 @@ "content", "data_sources" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -113,7 +117,11 @@ "content", "data_sources" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -127,7 +135,11 @@ "content", "data_sources" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -141,7 +153,11 @@ "title", "url" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -168,7 +184,11 @@ "title", "url" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -182,7 +202,11 @@ "title", "url" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -194,7 +218,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -232,7 +260,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -244,7 +276,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -258,7 +294,11 @@ "slug", "data_tool" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -298,7 +338,11 @@ "slug", "data_tool" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -312,7 +356,11 @@ "slug", "data_tool" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -324,7 +372,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -362,7 +414,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -374,7 +430,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -392,7 +452,11 @@ "geography", "data_tool_ecosystems" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -436,7 +500,11 @@ "geography", "data_tool_ecosystems" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -454,7 +522,11 @@ "geography", "data_tool_ecosystems" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -468,7 +540,11 @@ "layers", "slug" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -508,7 +584,11 @@ "layers", "slug" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -522,7 +602,75 @@ "layers", "slug" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.create", + "subject": "api::environment.environment", + "properties": { + "fields": [ + "name", + "slug" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.delete", + "subject": "api::environment.environment", + "properties": { + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.read", + "subject": "api::environment.environment", + "properties": { + "fields": [ + "name", + "slug" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.update", + "subject": "api::environment.environment", + "properties": { + "fields": [ + "name", + "slug" + ], + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -534,7 +682,8 @@ "fields": [ "location", "fishing_protection_level", - "area" + "area", + "pct" ] }, "conditions": [], @@ -554,7 +703,8 @@ "fields": [ "location", "fishing_protection_level", - "area" + "area", + "pct" ] }, "conditions": [], @@ -567,7 +717,8 @@ "fields": [ "location", "fishing_protection_level", - "area" + "area", + "pct" ] }, "conditions": [], @@ -582,7 +733,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -609,7 +764,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -623,7 +782,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -637,7 +800,8 @@ "habitat", "year", "protectedArea", - "totalArea" + "totalArea", + "environment" ] }, "conditions": [], @@ -659,7 +823,8 @@ "habitat", "year", "protectedArea", - "totalArea" + "totalArea", + "environment" ] }, "conditions": [], @@ -674,7 +839,8 @@ "habitat", "year", "protectedArea", - "totalArea" + "totalArea", + "environment" ] }, "conditions": [], @@ -689,7 +855,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -716,7 +886,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -730,7 +904,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -752,9 +930,19 @@ "metadata.content_date", "metadata.license", "dataset", - "legend_config" + "legend_config.type", + "legend_config.items.icon", + "legend_config.items.color", + "legend_config.items.value", + "legend_config.items.description", + "default", + "environment" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -802,9 +990,19 @@ "metadata.content_date", "metadata.license", "dataset", - "legend_config" + "legend_config.type", + "legend_config.items.icon", + "legend_config.items.color", + "legend_config.items.value", + "legend_config.items.description", + "default", + "environment" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -826,9 +1024,19 @@ "metadata.content_date", "metadata.license", "dataset", - "legend_config" + "legend_config.type", + "legend_config.items.icon", + "legend_config.items.color", + "legend_config.items.value", + "legend_config.items.description", + "default", + "environment" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -840,17 +1048,21 @@ "fields": [ "code", "name", + "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", + "mpaa_protection_level_stats", "protection_coverage_stats", + "marine_bounds", + "total_terrestrial_area", + "terrestrial_bounds", "name_es", "name_fr", - "total_marine_area", - "total_terrestrial_area" - ], - "locales": [] + "marine_target", + "marine_target_year" + ] }, "conditions": [], "actionParameters": {} @@ -858,13 +1070,7 @@ { "action": "plugin::content-manager.explorer.delete", "subject": "api::location.location", - "properties": { - "locales": [ - "en", - "es", - "fr" - ] - }, + "properties": {}, "conditions": [], "actionParameters": {} }, @@ -875,17 +1081,21 @@ "fields": [ "code", "name", + "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", + "mpaa_protection_level_stats", "protection_coverage_stats", + "marine_bounds", + "total_terrestrial_area", + "terrestrial_bounds", "name_es", "name_fr", - "total_marine_area", - "total_terrestrial_area" - ], - "locales": [] + "marine_target", + "marine_target_year" + ] }, "conditions": [], "actionParameters": {} @@ -897,17 +1107,88 @@ "fields": [ "code", "name", + "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", + "mpaa_protection_level_stats", "protection_coverage_stats", + "marine_bounds", + "total_terrestrial_area", + "terrestrial_bounds", "name_es", "name_fr", - "total_marine_area", - "total_terrestrial_area" + "marine_target", + "marine_target_year" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.create", + "subject": "api::mpa-iucn-category.mpa-iucn-category", + "properties": { + "fields": [ + "slug", + "name", + "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.delete", + "subject": "api::mpa-iucn-category.mpa-iucn-category", + "properties": { + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.read", + "subject": "api::mpa-iucn-category.mpa-iucn-category", + "properties": { + "fields": [ + "slug", + "name", + "info" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.update", + "subject": "api::mpa-iucn-category.mpa-iucn-category", + "properties": { + "fields": [ + "slug", + "name", + "info" + ], + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -921,7 +1202,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -948,7 +1233,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -962,7 +1251,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -972,9 +1265,10 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", - "area" + "area", + "percentage", + "location" ] }, "conditions": [], @@ -992,9 +1286,10 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", - "area" + "area", + "percentage", + "location" ] }, "conditions": [], @@ -1005,9 +1300,10 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", - "area" + "area", + "percentage", + "location" ] }, "conditions": [], @@ -1022,7 +1318,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -1049,7 +1349,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -1063,7 +1367,96 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.create", + "subject": "api::pa.pa", + "properties": { + "fields": [ + "name", + "area", + "year", + "protection_status", + "bbox", + "children", + "data_source", + "mpaa_establishment_stage", + "location", + "wdpaid", + "mpaa_protection_level", + "iucn_category", + "designation", + "environment", + "coverage", + "parent" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.delete", + "subject": "api::pa.pa", + "properties": {}, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.read", + "subject": "api::pa.pa", + "properties": { + "fields": [ + "name", + "area", + "year", + "protection_status", + "bbox", + "children", + "data_source", + "mpaa_establishment_stage", + "location", + "wdpaid", + "mpaa_protection_level", + "iucn_category", + "designation", + "environment", + "coverage", + "parent" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.update", + "subject": "api::pa.pa", + "properties": { + "fields": [ + "name", + "area", + "year", + "protection_status", + "bbox", + "children", + "data_source", + "mpaa_establishment_stage", + "location", + "wdpaid", + "mpaa_protection_level", + "iucn_category", + "designation", + "environment", + "coverage", + "parent" + ] }, "conditions": [], "actionParameters": {} @@ -1076,7 +1469,13 @@ "location", "year", "protectedArea", - "protectedAreasCount" + "protectedAreasCount", + "environment", + "coverage", + "pas", + "oecms", + "is_last_year", + "global_contribution" ] }, "conditions": [], @@ -1097,7 +1496,13 @@ "location", "year", "protectedArea", - "protectedAreasCount" + "protectedAreasCount", + "environment", + "coverage", + "pas", + "oecms", + "is_last_year", + "global_contribution" ] }, "conditions": [], @@ -1111,7 +1516,13 @@ "location", "year", "protectedArea", - "protectedAreasCount" + "protectedAreasCount", + "environment", + "coverage", + "pas", + "oecms", + "is_last_year", + "global_contribution" ] }, "conditions": [], @@ -1126,7 +1537,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -1153,7 +1568,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -1167,7 +1586,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -1182,7 +1605,11 @@ "value", "description" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -1223,7 +1650,11 @@ "value", "description" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -1238,7 +1669,11 @@ "value", "description" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {}