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;
// mark file downloaded if applicable
if ($this->isGranted('ROLE_ADMINISTRATIVE' && false === $inline)) {
if (true === $this->isGranted('ROLE_ADMINISTRATIVE') && false === $inline) {
$upload
->setDownloaded()
->setDownloadedBy($this->getUser()->getUserIdentifier())
@@ -55,4 +55,4 @@ class DownloadController extends AbstractController
return $response;
}
}
}