Fix data for supplier must be not visible if supplier module off

This commit is contained in:
Laurent Destailleur
2017-10-27 01:46:54 +02:00
parent 67208b111d
commit 82231b77a2
3 changed files with 9 additions and 6 deletions

View File

@@ -109,7 +109,7 @@ if ($socid > 0)
print '</td></tr>';
}
if ($object->fournisseur)
if (! empty($conf->fournisseur->enabled) && $object->fournisseur && ! empty($user->rights->fournisseur->lire))
{
print '<tr><td class="titlefield">';
print $langs->trans('SupplierCode').'</td><td colspan="3">';