From 379f584ce68dbdfa54ddc268d39971f6e24f40d6 Mon Sep 17 00:00:00 2001 From: Benjamin Takats Date: Tue, 24 Jan 2023 18:23:06 +0100 Subject: [PATCH] add podcasts --- app/Http/Livewire/Library/LibraryTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Livewire/Library/LibraryTable.php b/app/Http/Livewire/Library/LibraryTable.php index d510f3b7..fc447da9 100644 --- a/app/Http/Livewire/Library/LibraryTable.php +++ b/app/Http/Livewire/Library/LibraryTable.php @@ -40,7 +40,7 @@ class LibraryTable extends Component public function loadLibraryItems($term = null) { $shouldBePublic = !$this->isLecturerPage; - if (!$shouldBePublic && !auth()->user()->is_lecturer) { + if (!$shouldBePublic && !auth()->user()?->is_lecturer) { abort(403); }