Fix variable usage after no-shadow fixes

This commit is contained in:
Johannes Zellner
2026-02-19 18:05:11 +01:00
parent 95952fae75
commit c801202642
+1 -1
View File
@@ -340,7 +340,7 @@ async function mailboxSearch(req, res, next) {
const lowerCaseFilter = safe(function () { return ldap.parseFilter(req.filter.toString().toLowerCase()); }, null);
if (!lowerCaseFilter) return next(new ldap.OperationsError(safe.error.message));
if ((req.dn.equals(dn) || req.dn.parentOf(dn)) && lowerCaseFilter.matches(obj.attributes)) {
if ((req.dn.equals(mailboxDn) || req.dn.parentOf(mailboxDn)) && lowerCaseFilter.matches(obj.attributes)) {
results.push(obj);
}
}