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');