Skip to content

Commit

Permalink
Update access to authors and editors
Browse files Browse the repository at this point in the history
  • Loading branch information
clementprdhomme committed Oct 10, 2024
1 parent 8fa5c21 commit be34032
Show file tree
Hide file tree
Showing 2 changed files with 774 additions and 111 deletions.
294 changes: 261 additions & 33 deletions cms/config/sync/admin-role.strapi-author.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -769,8 +841,7 @@
"metadata.resolution",
"metadata.content_date",
"metadata.license",
"dataset",
"legend_config"
"dataset"
],
"locales": []
},
Expand Down Expand Up @@ -810,8 +881,7 @@
"metadata.resolution",
"metadata.content_date",
"metadata.license",
"dataset",
"legend_config"
"dataset"
],
"locales": []
},
Expand All @@ -836,8 +906,7 @@
"metadata.resolution",
"metadata.content_date",
"metadata.license",
"dataset",
"legend_config"
"dataset"
],
"locales": []
},
Expand All @@ -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"
Expand All @@ -873,13 +941,7 @@
{
"action": "plugin::content-manager.explorer.delete",
"subject": "api::location.location",
"properties": {
"locales": [
"en",
"es",
"fr"
]
},
"properties": {},
"conditions": [
"admin::is-creator"
],
Expand All @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -1001,9 +1136,9 @@
"subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat",
"properties": {
"fields": [
"location",
"mpaa_protection_level",
"area"
"area",
"location"
]
},
"conditions": [
Expand All @@ -1025,9 +1160,9 @@
"subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat",
"properties": {
"fields": [
"location",
"mpaa_protection_level",
"area"
"area",
"location"
]
},
"conditions": [
Expand All @@ -1040,9 +1175,9 @@
"subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat",
"properties": {
"fields": [
"location",
"mpaa_protection_level",
"area"
"area",
"location"
]
},
"conditions": [
Expand Down Expand Up @@ -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",
Expand Down
Loading

0 comments on commit be34032

Please sign in to comment.