mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-26 15:24:49 +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 = FileDownloader::getInstance();
|
||||||
$fileDownloader->setFileName($fileName);
|
$fileDownloader->setFileName($fileName);
|
||||||
$fileDownloader->download();
|
$fileDownloader->download();
|
||||||
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function isNotAuthor($ticket, $loggedUser) {
|
private function isNotAuthor($ticket, $loggedUser) {
|
||||||
@ -94,4 +95,4 @@ class DownloadController extends Controller {
|
|||||||
return !($loggedUser->level >= 1) || !$loggedUser->sharedDepartmentList->includesId($ticket->department->id);
|
return !($loggedUser->level >= 1) || !$loggedUser->sharedDepartmentList->includesId($ticket->department->id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user