Skip to content

Commit

Permalink
Fix image file stream
Browse files Browse the repository at this point in the history
  • Loading branch information
ivandiazwm committed Jul 3, 2018
1 parent 0e0fbe3 commit 352cfe0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/controllers/system/download.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function handler() {
$fileDownloader = FileDownloader::getInstance();
$fileDownloader->setFileName($fileName);
$fileDownloader->download();
exit();
}

private function isNotAuthor($ticket, $loggedUser) {
Expand All @@ -94,4 +95,4 @@ private function isNotDepartmentOwner($ticket, $loggedUser) {
return !($loggedUser->level >= 1) || !$loggedUser->sharedDepartmentList->includesId($ticket->department->id);
}
}
}
}

0 comments on commit 352cfe0

Please sign in to comment.