update
This commit is contained in:
parent
2690dd6274
commit
edb81d1955
@ -915,6 +915,11 @@ while ($currentdaytoshow < $lastdaytoshow) {
|
|||||||
if ($usergroup > 0) {
|
if ($usergroup > 0) {
|
||||||
$sql .= " AND ug.fk_usergroup = ".((int) $usergroup);
|
$sql .= " AND ug.fk_usergroup = ".((int) $usergroup);
|
||||||
}
|
}
|
||||||
|
if ($user->socid > 0)
|
||||||
|
{
|
||||||
|
// External users should see only contacts of their company
|
||||||
|
$sql .= " AND fk_soc=" . $socid;
|
||||||
|
}
|
||||||
|
|
||||||
//print $sql;
|
//print $sql;
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user