Fix 31370 Pb with external account

This commit is contained in:
vmaury
2025-01-11 12:31:35 +01:00
parent 34409e8a4d
commit 40e22cc40e

View File

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