forked from Wavyzz/dolibarr
Clean code
This commit is contained in:
@@ -2746,7 +2746,7 @@ class Commande extends CommonOrder
|
||||
}
|
||||
$sql .= " WHERE c.entity IN (".getEntity('commande').")";
|
||||
$sql .= " AND c.fk_soc = s.rowid";
|
||||
if (!$user->hasRight('societe', 'client', 'voir')) { //restriction
|
||||
if (!$user->hasRight('societe', 'client', 'voir')) {
|
||||
$sql .= " AND s.rowid = sc.fk_soc AND sc.fk_user = ".((int) $user->id);
|
||||
}
|
||||
if ($socid) {
|
||||
|
||||
Reference in New Issue
Block a user