Update peruser.php

This commit is contained in:
Laurent Destailleur 2023-02-06 00:05:06 +01:00 committed by GitHub
parent a0f8a2454b
commit b52203b4e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -917,7 +917,7 @@ while ($currentdaytoshow < $lastdaytoshow) {
}
if ($user->socid > 0) {
// External users should see only contacts of their company
$sql .= " AND fk_soc = ".((int) $user->socid);
$sql .= " AND u.fk_soc = ".((int) $user->socid);
}
//print $sql;