From fa77d15ff51670cbeec055c11a8f316be7e599be Mon Sep 17 00:00:00 2001 From: Benjamin Takats Date: Fri, 27 Jan 2023 15:47:18 +0100 Subject: [PATCH] back buttons --- 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 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.')); } }