Skip to content

Commit

Permalink
Merge pull request #50 from Vizzuality/SKY30-125
Browse files Browse the repository at this point in the history
SKY30-125 Role for data pipes user
  • Loading branch information
Agnieszka Figiel authored Nov 9, 2023
2 parents 43d0abc + 0c59903 commit d51c9fc
Show file tree
Hide file tree
Showing 2 changed files with 151 additions and 0 deletions.
91 changes: 91 additions & 0 deletions cms/config/sync/user-role.data_pipes_import_export_access.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"name": "Data Pipes Import / Export Access",
"description": "Custom role given to users who populate the database from the data pipes through the import / export content API.",
"type": "data_pipes_import_export_access",
"permissions": [
{
"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::location.location.find"
},
{
"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::import-export-entries.export.exportData"
},
{
"action": "plugin::import-export-entries.import.importData"
}
]
}
60 changes: 60 additions & 0 deletions cms/config/sync/user-role.public.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,36 @@
{
"action": "api::data-info.data-info.findOne"
},
{
"action": "api::data-source.data-source.find"
},
{
"action": "api::data-source.data-source.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 @@ -33,12 +57,48 @@
{
"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 d51c9fc

Please sign in to comment.