mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Add auth to document downloads
This commit is contained in:
parent
93f1cdd043
commit
34fb77e7dc
@ -58,7 +58,7 @@ class DocumentController extends Controller
|
||||
|
||||
$document = Document::where('hash', $document_hash)->firstOrFail();
|
||||
|
||||
$headers = [];
|
||||
$headers = ['Cache-Control:' => 'no-cache'];
|
||||
|
||||
if (request()->input('inline') == 'true') {
|
||||
$headers = array_merge($headers, ['Content-Disposition' => 'inline']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user