fix: correct method argument
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user