]> git.sur5r.net Git - contagged/blobdiff - img.php
fixed problem with login check
[contagged] / img.php
diff --git a/img.php b/img.php
index cb405cda6cba3131e92e2ec15153714518770b2e..087ff2da69462cbda39e858f43f4b96d8e8c28bf 100644 (file)
--- a/img.php
+++ b/img.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.0 401 Access Denied");
   echo '<h1>Access Denied</h1>';
   exit();