]> git.sur5r.net Git - contagged/commitdiff
Fixed problem with login check within Chrome 33.x and auto-completion 13/head
authormarcovanbeek <mvanbeek@forgetaboutit.net>
Fri, 28 Feb 2014 19:43:40 +0000 (19:43 +0000)
committermarcovanbeek <mvanbeek@forgetaboutit.net>
Fri, 28 Feb 2014 19:43:40 +0000 (19:43 +0000)
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

index 2ccb52f95af89019853ffd8e092b80e8ac40d7b0..580e262ed413b2214b67e70283805f7eb156150b 100644 (file)
--- 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 '<h1>Access Denied</h1>';
   exit();