X-Git-Url: https://git.sur5r.net/?p=contagged;a=blobdiff_plain;f=img.php;h=087ff2da69462cbda39e858f43f4b96d8e8c28bf;hp=cb405cda6cba3131e92e2ec15153714518770b2e;hb=e6398bad6d0293d1c7da37a410ae7e359895c41e;hpb=322256edd10e7da9d95bf82dca361dd56b53412a diff --git a/img.php b/img.php index cb405cd..087ff2d 100644 --- 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 '

Access Denied

'; exit();