Fix missing link on bank account

This commit is contained in:
Laurent Destailleur 2018-07-17 18:16:30 +02:00
parent 7dc552a54e
commit 34c2facff1

View File

@ -1309,8 +1309,10 @@ class Account extends CommonObject
$label .= '<br><b>' . $langs->trans('AccountNumber') . ':</b> ' . $this->number; $label .= '<br><b>' . $langs->trans('AccountNumber') . ':</b> ' . $this->number;
$label .= '<br><b>' . $langs->trans("AccountCurrency") . ':</b> ' . $this->currency_code; $label .= '<br><b>' . $langs->trans("AccountCurrency") . ':</b> ' . $this->currency_code;
if (!$user->rights->accounting->read || !empty($user->socid)) if (empty($user->rights->banque->lire) || !empty($user->socid))
$option = 'nolink'; {
$option = 'nolink';
}
if (! empty($conf->accounting->enabled)) if (! empty($conf->accounting->enabled))
{ {