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;
|
||||
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user