From 92c7eb59f504502f47abf1736869f8fb74ccfeeb Mon Sep 17 00:00:00 2001 From: fermin831 Date: Tue, 31 Oct 2017 19:48:56 +0100 Subject: [PATCH] Fixed public dashboard permissions --- pandora_console/include/ajax/visual_console.ajax.php | 5 ++++- .../operation/agentes/pandora_networkmap.view.php | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/ajax/visual_console.ajax.php b/pandora_console/include/ajax/visual_console.ajax.php index 789398139c..2e95d16fca 100644 --- a/pandora_console/include/ajax/visual_console.ajax.php +++ b/pandora_console/include/ajax/visual_console.ajax.php @@ -15,7 +15,10 @@ // Login check global $config; -check_login (); +// Public dashboards have not user. Try to get from URL +if (!isset($config['id_user'])) { + $config['id_user'] = get_parameter('id_user'); +} // Fix: IW was the old ACL to check for report editing, now is RW if (! check_acl ($config['id_user'], 0, "VR")) { diff --git a/pandora_console/operation/agentes/pandora_networkmap.view.php b/pandora_console/operation/agentes/pandora_networkmap.view.php index 5c5d2969c4..e20eaec9a7 100644 --- a/pandora_console/operation/agentes/pandora_networkmap.view.php +++ b/pandora_console/operation/agentes/pandora_networkmap.view.php @@ -13,8 +13,10 @@ // Load global variables global $config; -// Check user credentials -check_login(); +// Public dashboards have not user. Try to get from URL +if (!isset($config['id_user'])) { + $config['id_user'] = get_parameter('id_user'); +} require_once ('include/functions_pandora_networkmap.php'); enterprise_include_once('include/functions_policies.php');