2
0
forked from Wavyzz/dolibarr

two changes to feature request

This commit is contained in:
Quatadah Nasdami
2022-06-22 14:41:46 +02:00
parent 3749d70ae1
commit ce7db0004b
2 changed files with 10 additions and 0 deletions

View File

@@ -5516,6 +5516,9 @@ abstract class CommonObject
if ($this->element == 'bank_account' && !empty($conf->global->BANK_ACCOUNT_ALLOW_EXTERNAL_DOWNLOAD)) {
$setsharekey = true;
}
if ($this->element == 'product' && !empty($conf->global->PRODUCT_ALLOW_EXTERNAL_DOWNLOAD)) {
$setsharekey = true;
}
if ($this->element == 'contrat' && !empty($conf->global->CONTRACT_ALLOW_EXTERNAL_DOWNLOAD)) {
$setsharekey = true;
}