N°2889 - Fix counter not updated when downloaded by a user that don't have write permission on the host object

This commit is contained in:
Molkobain
2023-04-05 17:44:36 +02:00
parent f91259695a
commit d47e3ecda4

View File

@@ -282,6 +282,7 @@ class ormDocument
if($sContentDisposition === static::ENUM_CONTENT_DISPOSITION_ATTACHMENT) {
$oDocument->IncreaseDownloadsCount();
$oObj->Set($sAttCode, $oDocument);
$oObj->AllowWrite();
$oObj->DBUpdate();
}
}