lnbits paid articles added

This commit is contained in:
HolgerHatGarKeineNode
2023-03-13 16:47:38 +01:00
parent 639e17080c
commit cfd6156937

View File

@@ -32,7 +32,7 @@ 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 (auth() if (auth()->check() && auth()
->user() ->user()
->paidArticles() ->paidArticles()
->where('library_item_id', $this->libraryItem->id) ->where('library_item_id', $this->libraryItem->id)