Fix: SQL syntax
This commit is contained in:
parent
f7ca6e4d4b
commit
d4be09c324
@ -146,7 +146,7 @@ class User extends CommonObject
|
|||||||
|
|
||||||
if ($sid)
|
if ($sid)
|
||||||
{
|
{
|
||||||
$sql.= " AND (u.ldap_sid = '".$sid."' || u.login = '".$this->db->escape($login)."') LIMIT 1";
|
$sql.= " AND (u.ldap_sid = '".$sid."' OR u.login = '".$this->db->escape($login)."') LIMIT 1";
|
||||||
}
|
}
|
||||||
else if ($login)
|
else if ($login)
|
||||||
// permet une recherche du user par son SID ActiveDirectory ou Samba
|
// permet une recherche du user par son SID ActiveDirectory ou Samba
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user