mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 23:54:30 -04:00
Merge pull request #8555 from turbo124/v5-develop
Add auth to document downloads
This commit is contained in:
commit
72e947c9a4
@ -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