From a80e4364ae9c1c2544f8257538b70bc25edaf5b8 Mon Sep 17 00:00:00 2001 From: Peter Papp Date: Sun, 7 Feb 2021 18:20:29 +0100 Subject: [PATCH] - allow share files to email for demo --- .../Controllers/FileFunctions/ShareController.php | 12 +----------- config/content.php | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/app/Http/Controllers/FileFunctions/ShareController.php b/app/Http/Controllers/FileFunctions/ShareController.php index 36c67542..d132dbe3 100644 --- a/app/Http/Controllers/FileFunctions/ShareController.php +++ b/app/Http/Controllers/FileFunctions/ShareController.php @@ -145,17 +145,7 @@ class ShareController extends Controller ]); // Return error - if ($validator->fails()) abort(400, 'Bad emails input'); - - // Get shared by token - $share = Share::where('token', $token) - ->where('user_id', Auth::id()) - ->first(); - - // Demo preview - if (env('APP_DEMO')) { - return response('Done!', 204); - } + if ($validator->fails()) abort(400, 'Bad email input'); // Send shared link via email if($request->has('emails')) { diff --git a/config/content.php b/config/content.php index e009dac5..ed44c14c 100644 --- a/config/content.php +++ b/config/content.php @@ -88,7 +88,7 @@ return [ ], [ 'name' => 'allow_homepage', - 'value' => 0, + 'value' => 1, ], ], 'content_extended' => [