lnbits paid articles added

This commit is contained in:
HolgerHatGarKeineNode
2023-03-14 12:50:20 +01:00
parent 509e252022
commit 14ee59bbd5

View File

@@ -33,6 +33,9 @@ class InternArticleView extends Component
->count() > 0 && !auth()->check()) { ->count() > 0 && !auth()->check()) {
abort(403, __('Sorry! You are not authorized to perform this action.')); 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() if (auth()->check() && auth()
->user() ->user()
->paidArticles() ->paidArticles()