diff --git a/app/Http/Livewire/News/InternArticleView.php b/app/Http/Livewire/News/InternArticleView.php index 79e1c168..3bb49f3b 100644 --- a/app/Http/Livewire/News/InternArticleView.php +++ b/app/Http/Livewire/News/InternArticleView.php @@ -17,7 +17,7 @@ class InternArticleView extends Component 'libraries', ]); if ($this->libraryItem->libraries->where('is_public', false) - ->count() > 0) { + ->count() > 0 && !auth()->check()) { abort(403, __('Sorry! You are not authorized to perform this action.')); } }