add more case to set share key

This commit is contained in:
Frédéric FRANCE
2025-12-19 10:04:09 +01:00
parent fcefef410c
commit 028a5ca076

View File

@@ -6181,6 +6181,10 @@ abstract class CommonObject
$setsharekey = true;
}
}
if (!empty($this->TRIGGER_PREFIX) && getDolGlobalInt(strtoupper($this->TRIGGER_PREFIX."_ALLOW_EXTERNAL_DOWNLOAD"))) {
$setsharekey = true;
}
// TODO Remove case covered by trigger prefix
if ($this->element == 'commande' && getDolGlobalInt("ORDER_ALLOW_EXTERNAL_DOWNLOAD")) {
$setsharekey = true;
}