mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Fixed check login in ajax.php
This commit is contained in:
parent
220ea8d319
commit
931c41698b
@ -46,8 +46,19 @@ if (isset ($_GET["loginhash"])) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$public_hash = get_parameter('hash', false);
|
||||||
|
|
||||||
// Check user
|
// 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);
|
define ('AJAX', true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user