From: marcovanbeek Date: Fri, 28 Feb 2014 19:43:40 +0000 (+0000) Subject: Fixed problem with login check within Chrome 33.x and auto-completion X-Git-Tag: 0.8.0~8^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5275b677083b3f8c49fb942f15bfd73f95636f97;p=contagged Fixed problem with login check within Chrome 33.x and auto-completion Same patch previously applied in other files. ajax.php was missed at that time. https://github.com/cosmocode/contagged/commit/e6398bad6d0293d1c7da37a410ae7e359895c41e Incidentally it restore the auto-completion feature within Contagged editor page. --- diff --git a/ajax.php b/ajax.php index 2ccb52f..580e262 100644 --- a/ajax.php +++ b/ajax.php @@ -2,7 +2,7 @@ require_once('inc/init.php'); ldap_login(); -if ($conf['userlogreq'] && $user == ''){ +if ($conf['userlogreq'] && !isset($_SESSION['ldapab']['username'])){ header("HTTP/1.1 401 Access Denied"); echo '

Access Denied

'; exit();