2
0
forked from Wavyzz/dolibarr

Merge pull request #16351 from aspangaro/14a16

NEW: Add option CONTRACT_ALLOW_EXTERNAL_DOWNLOAD
This commit is contained in:
Laurent Destailleur
2021-02-19 18:20:17 +01:00
committed by GitHub
3 changed files with 15 additions and 0 deletions

View File

@@ -4884,6 +4884,9 @@ abstract class CommonObject
if ($this->element == 'bank_account' && !empty($conf->global->BANK_ACCOUNT_ALLOW_EXTERNAL_DOWNLOAD)) {
$setsharekey = true;
}
if ($this->element == 'contrat' && !empty($conf->global->CONTRACT_ALLOW_EXTERNAL_DOWNLOAD)) {
$setsharekey = true;
}
if ($setsharekey) {
if (empty($ecmfile->share)) // Because object not found or share not set yet