mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 13:14:37 -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();
|
$document = Document::where('hash', $document_hash)->firstOrFail();
|
||||||
|
|
||||||
$headers = [];
|
$headers = ['Cache-Control:' => 'no-cache'];
|
||||||
|
|
||||||
if (request()->input('inline') == 'true') {
|
if (request()->input('inline') == 'true') {
|
||||||
$headers = array_merge($headers, ['Content-Disposition' => 'inline']);
|
$headers = array_merge($headers, ['Content-Disposition' => 'inline']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user