Add auth to document downloads

This commit is contained in:
David Bomba 2023-06-14 10:10:11 +10:00
parent 93f1cdd043
commit 34fb77e7dc

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