- LSsession :: loadLSrights() : correction d'un bug suite aux mofications

récentes.
This commit is contained in:
Benjamin Renard 2008-12-06 00:27:18 +00:00
parent ef6e0eda4d
commit 78b227d489

View file

@ -1041,7 +1041,7 @@ class LSsession {
if ($object = new $conf['LSobject']()) { if ($object = new $conf['LSobject']()) {
if ($object -> loadData($dn)) { if ($object -> loadData($dn)) {
$listDns=$object -> getValue($conf['attr']); $listDns=$object -> getValue($conf['attr']);
$valKey = (isset($conf['attr_value']))?$conf['attr_value']:'dn'; $valKey = (isset($conf['attr_value']))?$conf['attr_value']:'%{dn}';
$val = $this -> LSuserObject -> getFData($valKey); $val = $this -> LSuserObject -> getFData($valKey);
if (is_array($listDns)) { if (is_array($listDns)) {
if (in_array($val,$listDns)) { if (in_array($val,$listDns)) {