From 14ee59bbd54a06054706779c80ec153dcfb75a55 Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Tue, 14 Mar 2023 12:50:20 +0100 Subject: [PATCH] lnbits paid articles added --- app/Http/Livewire/News/InternArticleView.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Livewire/News/InternArticleView.php b/app/Http/Livewire/News/InternArticleView.php index c2c3b537..d346b830 100644 --- a/app/Http/Livewire/News/InternArticleView.php +++ b/app/Http/Livewire/News/InternArticleView.php @@ -33,6 +33,9 @@ class InternArticleView extends Component ->count() > 0 && !auth()->check()) { abort(403, __('Sorry! You are not authorized to perform this action.')); } + if ($this->libraryItem->sats && !auth()->check()) { + return to_route('article.overview'); + } if (auth()->check() && auth() ->user() ->paidArticles()