fix: correct method argument

This commit is contained in:
Björn Fromme
2025-03-20 16:02:31 +01:00
parent 66c58e42a7
commit 27d39c5035
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ class DownloadController extends AbstractController
$disposition = $inline ? ResponseHeaderBag::DISPOSITION_INLINE : ResponseHeaderBag::DISPOSITION_ATTACHMENT; $disposition = $inline ? ResponseHeaderBag::DISPOSITION_INLINE : ResponseHeaderBag::DISPOSITION_ATTACHMENT;
// mark file downloaded if applicable // mark file downloaded if applicable
if ($this->isGranted('ROLE_ADMINISTRATIVE' && false === $inline)) { if (true === $this->isGranted('ROLE_ADMINISTRATIVE') && false === $inline) {
$upload $upload
->setDownloaded() ->setDownloaded()
->setDownloadedBy($this->getUser()->getUserIdentifier()) ->setDownloadedBy($this->getUser()->getUserIdentifier())
@@ -55,4 +55,4 @@ class DownloadController extends AbstractController
return $response; return $response;
} }
} }
+1 -1
View File
@@ -113,7 +113,7 @@ class UploadRepository extends ServiceEntityRepository
return $this return $this
->getBatchDownloadListQuery($type, $status) ->getBatchDownloadListQuery($type, $status)
->getResult() ->getResult()
; ;
} }
public function getUploadListQuery(DocumentFilterDto $filterDto): Query public function getUploadListQuery(DocumentFilterDto $filterDto): Query