diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 5c94e30495e..7f30878d566 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -5608,7 +5608,7 @@ abstract class CommonObject if ($this->element == 'product' && !empty($conf->global->PRODUCT_ALLOW_EXTERNAL_DOWNLOAD)) { $setsharekey = true; } - if ($this->element == 'contrat' && (!empty($conf->global->CONTRACT_ALLOW_EXTERNAL_DOWNLOAD) || !empty($conf->global->CONTRACT_ALLOW_ONLINESIGN))) { + if ($this->element == 'contrat' && !empty($conf->global->CONTRACT_ALLOW_EXTERNAL_DOWNLOAD)) { $setsharekey = true; } if ($this->element == 'supplier_proposal' && !empty($conf->global->SUPPLIER_PROPOSAL_ALLOW_EXTERNAL_DOWNLOAD)) {