Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Nov 15, 2024
2 parents caf9274 + 187e231 commit 66e82a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/Http/Controllers/ActionlogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,11 @@ public function getStoredEula($filename) : Response | BinaryFileResponse | Redir
$this->authorize('view', \App\Models\Asset::class);
$file = config('app.private_uploads').'/eula-pdfs/'.$filename;

if (Storage::exists($file)) {
if (Storage::exists('private_uploads/eula-pdfs/'.$filename)) {
return response()->download($file);
}

return redirect()->back()->with('error', trans('general.file_does_not_exist'));



}
}

0 comments on commit 66e82a3

Please sign in to comment.