Update index.php
This commit is contained in:
parent
7406f2cc85
commit
0fd980b005
@ -512,10 +512,10 @@ if (!empty($conf->ficheinter->enabled)) {
|
|||||||
$sql .= " AND f.fk_soc = s.rowid";
|
$sql .= " AND f.fk_soc = s.rowid";
|
||||||
$sql .= " AND f.fk_statut = 0";
|
$sql .= " AND f.fk_statut = 0";
|
||||||
if ($socid) {
|
if ($socid) {
|
||||||
$sql .= " AND f.fk_soc = ".$socid;
|
$sql .= " AND f.fk_soc = ".((int) $socid);
|
||||||
}
|
}
|
||||||
if (!$user->rights->societe->client->voir && !$socid) {
|
if (!$user->rights->societe->client->voir && !$socid) {
|
||||||
$sql .= " AND s.rowid = sc.fk_soc AND sc.fk_user = ".$user->id;
|
$sql .= " AND s.rowid = sc.fk_soc AND sc.fk_user = ".((int) $user->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user