mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
add podcasts
This commit is contained in:
@@ -40,7 +40,7 @@ class LibraryTable extends Component
|
|||||||
public function loadLibraryItems($term = null)
|
public function loadLibraryItems($term = null)
|
||||||
{
|
{
|
||||||
$shouldBePublic = !$this->isLecturerPage;
|
$shouldBePublic = !$this->isLecturerPage;
|
||||||
if (!$shouldBePublic && !auth()->user()->is_lecturer) {
|
if (!$shouldBePublic && !auth()->user()?->is_lecturer) {
|
||||||
abort(403);
|
abort(403);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user