mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-24 22:35:43 +02:00
Fix image file stream
This commit is contained in:
parent
0e0fbe324c
commit
352cfe0ca5
@ -73,6 +73,7 @@ class DownloadController extends Controller {
|
||||
$fileDownloader = FileDownloader::getInstance();
|
||||
$fileDownloader->setFileName($fileName);
|
||||
$fileDownloader->download();
|
||||
exit();
|
||||
}
|
||||
|
||||
private function isNotAuthor($ticket, $loggedUser) {
|
||||
@ -94,4 +95,4 @@ class DownloadController extends Controller {
|
||||
return !($loggedUser->level >= 1) || !$loggedUser->sharedDepartmentList->includesId($ticket->department->id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user