We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5d58175 + 6bec573 commit 9eed6cdCopy full SHA for 9eed6cd
app/Http/Controllers/ActionlogController.php
@@ -37,10 +37,18 @@ public function displaySig($filename) : RedirectResponse | Response | bool
37
}
38
39
40
- public function getStoredEula($filename) : Response | BinaryFileResponse
+ public function getStoredEula($filename) : Response | BinaryFileResponse | RedirectResponse
41
{
42
$this->authorize('view', \App\Models\Asset::class);
43
$file = config('app.private_uploads').'/eula-pdfs/'.$filename;
44
- return response()->download($file);
+
45
+ if (Storage::exists($file)) {
46
+ return response()->download($file);
47
+ }
48
49
+ return redirect()->back()->with('error', trans('general.file_does_not_exist'));
50
51
52
53
54
0 commit comments