From 931c41698bf22deb9aff3b4ddc28c3f8e6456b25 Mon Sep 17 00:00:00 2001 From: danielmaya Date: Wed, 9 May 2018 10:52:06 +0200 Subject: [PATCH] Fixed check login in ajax.php --- pandora_console/ajax.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pandora_console/ajax.php b/pandora_console/ajax.php index 261babb5aa..b3e9fff95f 100644 --- a/pandora_console/ajax.php +++ b/pandora_console/ajax.php @@ -46,8 +46,19 @@ if (isset ($_GET["loginhash"])) { } } +$public_hash = get_parameter('hash', false); + // Check user -//check_login (); +if ($public_hash === false) { + check_login(); +} else { + enterprise_include_once('include/functions_dashboard.php'); + if (dashboard_check_public_hash($public_hash) === false) { + db_pandora_audit("Invalid public hash", "Trying to access public dashboard"); + require ("general/noaccess.php"); + exit; + } +} define ('AJAX', true);