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())
|
||||||
|
|||||||
Reference in New Issue
Block a user