Skip to content

Commit

Permalink
🐛 Fix search OR and AND reversed when has objectclas
Browse files Browse the repository at this point in the history
Signed-off-by: Cécile Chemin <[email protected]>
  • Loading branch information
CChemin committed Aug 28, 2024
1 parent 673e60f commit 2a67d57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ private <M extends SugoiObject> Filter getFilterFromObject(
return LdapFilter.and(
Arrays.asList(
LdapFilter.and(objectClassListFilter),
searchType.equals("AND")
searchType.equalsIgnoreCase("OR")
? LdapFilter.or(attributeListFilter)
: LdapFilter.and(attributeListFilter)));
}
Expand Down

0 comments on commit 2a67d57

Please sign in to comment.