From b06363c38e7ecd3235af1fb499a5fcff10ddde68 Mon Sep 17 00:00:00 2001 From: David Quartey <42542676+DavidQuartz@users.noreply.github.com> Date: Tue, 13 Sep 2022 09:10:59 +0000 Subject: [PATCH] [Fixes #1144] Disable / hide the charts button if a user doesn't have enough perms on the dataset (#1196) --- .../client/static/mapstore/configs/localConfig.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json b/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json index 8e57f0397f..13e645e0aa 100644 --- a/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json +++ b/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json @@ -2137,7 +2137,10 @@ "name": "Locate" }, { - "name": "WidgetsBuilder" + "name": "WidgetsBuilder", + "cfg": { + "disablePluginIf": "{!state('selectedLayerPermissions').includes('download_resourcebase')}" + } }, { "name": "Save",