mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
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:
@@ -282,6 +282,7 @@ class ormDocument
|
||||
if($sContentDisposition === static::ENUM_CONTENT_DISPOSITION_ATTACHMENT) {
|
||||
$oDocument->IncreaseDownloadsCount();
|
||||
$oObj->Set($sAttCode, $oDocument);
|
||||
$oObj->AllowWrite();
|
||||
$oObj->DBUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user