mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-09 01:12:33 +01:00
add more case to set share key
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user