Skip to content

Commit

Permalink
Merge pull request #32 from Vizzuality/fix/cms/restore_public_role_pe…
Browse files Browse the repository at this point in the history
…rmissions

Fix/cms/restore public role permissions
  • Loading branch information
Agnieszka Figiel authored Oct 26, 2023
2 parents 323279c + 99b5392 commit f9521a6
Show file tree
Hide file tree
Showing 8 changed files with 141 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,24 +127,24 @@
"list": [
"id",
"location",
"fishing_protection_level",
"area"
"area",
"fishing_protection_level"
],
"edit": [
[
{
"name": "location",
"size": 6
},
{
"name": "fishing_protection_level",
"size": 6
}
],
[
{
"name": "area",
"size": 4
},
{
"name": "fishing_protection_level",
"size": 6
}
]
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,6 @@
}
},
"layouts": {
"list": [
"id",
"location",
"habitat",
"year"
],
"edit": [
[
{
Expand All @@ -183,6 +177,14 @@
"size": 4
}
]
],
"list": [
"id",
"location",
"habitat",
"year",
"protectedArea",
"totalArea"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,6 @@
}
},
"layouts": {
"list": [
"id",
"code",
"name",
"totalMarineArea"
],
"edit": [
[
{
Expand All @@ -229,41 +223,49 @@
}
],
[
{
"name": "totalMarineArea",
"size": 4
},
{
"name": "type",
"size": 6
}
],
[
{
"name": "groups",
"size": 6
"name": "totalMarineArea",
"size": 4
},
{
"name": "members",
"name": "groups",
"size": 6
}
],
[
{
"name": "fishing_protection_level_stats",
"name": "members",
"size": 6
},
{
"name": "mpaa_protection_level_stats",
"name": "fishing_protection_level_stats",
"size": 6
}
],
[
{
"name": "mpaa_protection_level_stats",
"size": 6
},
{
"name": "protection_coverage_stats",
"size": 6
}
]
],
"list": [
"id",
"code",
"name",
"type",
"totalMarineArea",
"groups"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,6 @@
}
},
"layouts": {
"list": [
"id",
"mpa",
"fishing_protection_level",
"mpaa_protection_level"
],
"edit": [
[
{
Expand Down Expand Up @@ -187,6 +181,13 @@
"size": 4
}
]
],
"list": [
"id",
"mpa",
"fishing_protection_level",
"mpaa_protection_level",
"location"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,6 @@
}
},
"layouts": {
"list": [
"id",
"wdpaid",
"name",
"year"
],
"edit": [
[
{
Expand Down Expand Up @@ -226,6 +220,15 @@
"size": 6
}
]
],
"list": [
"id",
"wdpaid",
"name",
"year",
"protection_status",
"mpaa_establishment_stage",
"area"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,6 @@
}
},
"layouts": {
"list": [
"id",
"location",
"mpaa_establishment_stage",
"protection_status"
],
"edit": [
[
{
Expand Down Expand Up @@ -186,6 +180,14 @@
"size": 4
}
]
],
"list": [
"id",
"location",
"mpaa_establishment_stage",
"protection_status",
"year",
"area"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,6 @@
}
},
"layouts": {
"list": [
"id",
"location",
"protection_status",
"year"
],
"edit": [
[
{
Expand Down Expand Up @@ -203,6 +197,14 @@
"size": 4
}
]
],
"list": [
"id",
"location",
"protection_status",
"year",
"cumSumProtectedArea",
"protectedAreasCount"
]
}
},
Expand Down
78 changes: 78 additions & 0 deletions cms/config/sync/user-role.public.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,36 @@
"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"
},
{
"action": "api::fishing-protection-level-stat.fishing-protection-level-stat.findOne"
},
{
"action": "api::fishing-protection-level.fishing-protection-level.find"
},
{
"action": "api::fishing-protection-level.fishing-protection-level.findOne"
},
{
"action": "api::habitat-stat.habitat-stat.find"
},
{
"action": "api::habitat-stat.habitat-stat.findOne"
},
{
"action": "api::habitat.habitat.find"
},
{
"action": "api::habitat.habitat.findOne"
},
{
"action": "api::layer.layer.find"
},
Expand All @@ -15,6 +45,54 @@
{
"action": "api::location.location.findOne"
},
{
"action": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat.find"
},
{
"action": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat.findOne"
},
{
"action": "api::mpa.mpa.find"
},
{
"action": "api::mpa.mpa.findOne"
},
{
"action": "api::mpaa-establishment-stage-stat.mpaa-establishment-stage-stat.find"
},
{
"action": "api::mpaa-establishment-stage-stat.mpaa-establishment-stage-stat.findOne"
},
{
"action": "api::mpaa-establishment-stage.mpaa-establishment-stage.find"
},
{
"action": "api::mpaa-establishment-stage.mpaa-establishment-stage.findOne"
},
{
"action": "api::mpaa-protection-level-stat.mpaa-protection-level-stat.find"
},
{
"action": "api::mpaa-protection-level-stat.mpaa-protection-level-stat.findOne"
},
{
"action": "api::mpaa-protection-level.mpaa-protection-level.find"
},
{
"action": "api::mpaa-protection-level.mpaa-protection-level.findOne"
},
{
"action": "api::protection-coverage-stat.protection-coverage-stat.find"
},
{
"action": "api::protection-coverage-stat.protection-coverage-stat.findOne"
},
{
"action": "api::protection-status.protection-status.find"
},
{
"action": "api::protection-status.protection-status.findOne"
},
{
"action": "plugin::users-permissions.auth.callback"
},
Expand Down

0 comments on commit f9521a6

Please sign in to comment.