- allow share files to email for demo

This commit is contained in:
Peter Papp
2021-02-07 18:20:29 +01:00
parent bfb3888555
commit a80e4364ae
2 changed files with 2 additions and 12 deletions

View File

@@ -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')) {

View File

@@ -88,7 +88,7 @@ return [
],
[
'name' => 'allow_homepage',
'value' => 0,
'value' => 1,
],
],
'content_extended' => [