add more case to set share key
This commit is contained in:
parent
fcefef410c
commit
028a5ca076
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue