Merge pull request #8555 from turbo124/v5-develop

Add auth to document downloads
This commit is contained in:
David Bomba 2023-06-14 10:10:32 +10:00 committed by GitHub
commit 72e947c9a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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']);