From d47e3ecda4ea5ec80ed244fc4848368fdaf2e94c Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 5 Apr 2023 17:44:36 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B02889=20-=20Fix=20counter=20not=20updated?= =?UTF-8?q?=20when=20downloaded=20by=20a=20user=20that=20don't=20have=20wr?= =?UTF-8?q?ite=20permission=20on=20the=20host=20object?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/ormdocument.class.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/ormdocument.class.inc.php b/core/ormdocument.class.inc.php index f228ddd84..337b686e0 100644 --- a/core/ormdocument.class.inc.php +++ b/core/ormdocument.class.inc.php @@ -282,6 +282,7 @@ class ormDocument if($sContentDisposition === static::ENUM_CONTENT_DISPOSITION_ATTACHMENT) { $oDocument->IncreaseDownloadsCount(); $oObj->Set($sAttCode, $oDocument); + $oObj->AllowWrite(); $oObj->DBUpdate(); } }