mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 19:54:46 +01:00
LSldapObject :: Fixed validation test
This commit is contained in:
parent
093aebd6b9
commit
b6d984f6c5
1 changed files with 9 additions and 7 deletions
|
@ -466,6 +466,7 @@ class LSldapObject {
|
||||||
if(isset($test['object_type'])) {
|
if(isset($test['object_type'])) {
|
||||||
$test_obj = new $test['object_type']();
|
$test_obj = new $test['object_type']();
|
||||||
$sfilter=$test_obj->getObjectFilter();
|
$sfilter=$test_obj->getObjectFilter();
|
||||||
|
if ($sfilter_user) {
|
||||||
$sfilter='(&'.$sfilter;
|
$sfilter='(&'.$sfilter;
|
||||||
if($sfilter_user[0]=='(') {
|
if($sfilter_user[0]=='(') {
|
||||||
$sfilter=$sfilter.$sfilter_user.')';
|
$sfilter=$sfilter.$sfilter_user.')';
|
||||||
|
@ -474,6 +475,7 @@ class LSldapObject {
|
||||||
$sfilter=$sfilter.'('.$sfilter_user.'))';
|
$sfilter=$sfilter.'('.$sfilter_user.'))';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
$sfilter=$sfilter_user;
|
$sfilter=$sfilter_user;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue