From cfd615693716cca88c92d41d1c6b0ce9d8b07a11 Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Mon, 13 Mar 2023 16:47:38 +0100 Subject: [PATCH] lnbits paid articles added --- app/Http/Livewire/News/InternArticleView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Livewire/News/InternArticleView.php b/app/Http/Livewire/News/InternArticleView.php index 4cefd700..81e09efc 100644 --- a/app/Http/Livewire/News/InternArticleView.php +++ b/app/Http/Livewire/News/InternArticleView.php @@ -32,7 +32,7 @@ class InternArticleView extends Component ->count() > 0 && !auth()->check()) { abort(403, __('Sorry! You are not authorized to perform this action.')); } - if (auth() + if (auth()->check() && auth() ->user() ->paidArticles() ->where('library_item_id', $this->libraryItem->id)