From 796d6909d545309ea556e37005086f02045a8eb7 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Mon, 17 Jun 2024 14:40:06 -0700 Subject: [PATCH] Add missing } --- app/Http/Controllers/ActionlogController.php | 30 +++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/app/Http/Controllers/ActionlogController.php b/app/Http/Controllers/ActionlogController.php index 4c1a853969..2d194b7ca6 100644 --- a/app/Http/Controllers/ActionlogController.php +++ b/app/Http/Controllers/ActionlogController.php @@ -17,22 +17,24 @@ class ActionlogController extends Controller $disk = config('filesystems.default'); switch (config("filesystems.disks.$disk.driver")) { - case 's3': - $file = 'private_uploads/signatures/'.$filename; - return redirect()->away(Storage::disk($disk)->temporaryUrl($file, now()->addMinutes(5))); - default: - $this->authorize('view', \App\Models\Asset::class); - $file = config('app.private_uploads').'/signatures/'.$filename; - $filetype = Helper::checkUploadIsImage($file); + case 's3': + $file = 'private_uploads/signatures/'.$filename; + return redirect()->away(Storage::disk($disk)->temporaryUrl($file, now()->addMinutes(5))); + default: + $this->authorize('view', \App\Models\Asset::class); + $file = config('app.private_uploads').'/signatures/'.$filename; + $filetype = Helper::checkUploadIsImage($file); - $contents = file_get_contents($file, false, stream_context_create(['http' => ['ignore_errors' => true]])); - if ($contents === false) { - Log::warning('File '.$file.' not found'); - return false; - } else { - return Response::make($contents)->header('Content-Type', $filetype); - } + $contents = file_get_contents($file, false, stream_context_create(['http' => ['ignore_errors' => true]])); + if ($contents === false) { + Log::warning('File '.$file.' not found'); + return false; + } else { + return Response::make($contents)->header('Content-Type', $filetype); + } + } } + public function getStoredEula($filename){ $this->authorize('view', \App\Models\Asset::class); $file = config('app.private_uploads').'/eula-pdfs/'.$filename;