mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02: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) {
|
if($sContentDisposition === static::ENUM_CONTENT_DISPOSITION_ATTACHMENT) {
|
||||||
$oDocument->IncreaseDownloadsCount();
|
$oDocument->IncreaseDownloadsCount();
|
||||||
$oObj->Set($sAttCode, $oDocument);
|
$oObj->Set($sAttCode, $oDocument);
|
||||||
|
$oObj->AllowWrite();
|
||||||
$oObj->DBUpdate();
|
$oObj->DBUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user