Skip to content

Commit

Permalink
NEW Add option BANK_ACCOUNT_ALLOW_EXTERNAL_DOWNLOAD
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 19, 2018
1 parent 5db7184 commit f8ca4b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions htdocs/core/class/commonobject.class.php
Expand Up @@ -4338,8 +4338,10 @@ protected function commonGenerateDocument($modelspath, $modele, $outputlangs, $h
if ($useonlinesignature) $setsharekey=true;
if (! empty($conf->global->PROPOSAL_ALLOW_EXTERNAL_DOWNLOAD)) $setsharekey=true;
}
if ($this->element == 'commande' && ! empty($conf->global->ORDER_ALLOW_EXTERNAL_DOWNLOAD)) $setsharekey=true;
if ($this->element == 'facture' && ! empty($conf->global->INVOICE_ALLOW_EXTERNAL_DOWNLOAD)) $setsharekey=true;
if ($this->element == 'commande' && ! empty($conf->global->ORDER_ALLOW_EXTERNAL_DOWNLOAD)) $setsharekey=true;
if ($this->element == 'facture' && ! empty($conf->global->INVOICE_ALLOW_EXTERNAL_DOWNLOAD)) $setsharekey=true;
if ($this->element == 'bank_account' && ! empty($conf->global->BANK_ACCOUNT_ALLOW_EXTERNAL_DOWNLOAD)) $setsharekey=true;

if ($setsharekey)
{
if (empty($ecmfile->share)) // Because object not found or share not set yet
Expand Down

0 comments on commit f8ca4b1

Please sign in to comment.