Fix 31370 Pb with external account

This commit is contained in:
vmaury 2025-01-11 07:33:08 +01:00
parent 253e4e7147
commit 34409e8a4d

View file

@ -286,7 +286,7 @@ foreach ($object->fields as $key => $val) {
}
}*/
if (!$user->hasRight('societe', 'client', 'voir')) {
if ($socid == 0 && !$user->hasRight('societe', 'client', 'voir')) { // add VMA
$search_sale = $user->id;
}