Unverified Commit acef132f authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(userinfo) Sonar fix: merge if statement with enclosing one

issue #6054
Showing with 3 additions and 5 deletions
+3 -5
...@@ -222,11 +222,9 @@ class userinfo ...@@ -222,11 +222,9 @@ class userinfo
continue; continue;
} }
if (!empty($ACLRule['userfilter'])) { if (!empty($ACLRule['userfilter']) && !$ldap->object_match_filter($this->dn, $ACLRule['userfilter'])) {
/* Check if we match the user filter */ /* We do not match the user filter */
if (!$ldap->object_match_filter($this->dn, $ACLRule['userfilter'])) { continue;
continue;
}
} }
if (!empty($ACLRule['targetfilter'])) { if (!empty($ACLRule['targetfilter'])) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment