From 401028f056583fe98bb6f730914e042b40268438 Mon Sep 17 00:00:00 2001 From: Luca Orlandini Date: Wed, 14 Jul 2021 15:26:56 +0200 Subject: [PATCH] edit and save perms (#322) --- .../client/static/mapstore/configs/localConfig.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json b/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json index aee8c4ce1a..288f7e8da0 100644 --- a/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json +++ b/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json @@ -2603,6 +2603,7 @@ { "labelId": "gnviewer.save", "type": "dropdown", + "perms": [{ "type": "resource", "value": "change_resourcebase" }], "items": [ { "type": "plugin", @@ -3161,6 +3162,7 @@ { "labelId": "gnviewer.save", "type": "dropdown", + "perms": [{ "type": "resource", "value": "change_resourcebase" }], "items": [ { "type": "plugin", @@ -3581,6 +3583,7 @@ "leftMenuItems": [ { "labelId": "gnviewer.save", + "perms": [{ "type": "resource", "value": "change_resourcebase" }], "type": "dropdown", "items": [ { @@ -3600,12 +3603,12 @@ { "labelId": "gnviewer.edit", "type": "dropdown", + "perms": [{ "type": "resource", "value": "change_resourcebase" }], "items": [ { "type": "link", "href": "{(state('gnResourceData') || {}).detail_url + '/metadata'}", - "labelId": "gnviewer.editMetadata", - "perms": [{ "type": "resource", "value": "change_resourcebase" }] + "labelId": "gnviewer.editMetadata" } ] }, @@ -3739,6 +3742,7 @@ { "labelId": "gnviewer.save", "type": "dropdown", + "perms": [{ "type": "resource", "value": "change_resourcebase" }], "items": [ { "type": "plugin", @@ -3762,8 +3766,7 @@ { "type": "link", "href": "{(state('gnResourceData') || {}).detail_url + '/metadata'}", - "labelId": "gnviewer.editMetadata", - "perms": [{ "type": "resource", "value": "change_resourcebase" }] + "labelId": "gnviewer.editMetadata" } ] },