From 5275b677083b3f8c49fb942f15bfd73f95636f97 Mon Sep 17 00:00:00 2001 From: marcovanbeek Date: Fri, 28 Feb 2014 19:43:40 +0000 Subject: [PATCH] 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. --- ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2