diff --git a/lib/Routes/Course/CourseAddPlaylist.php b/lib/Routes/Course/CourseAddPlaylist.php index 72bd7354..1f562f74 100644 --- a/lib/Routes/Course/CourseAddPlaylist.php +++ b/lib/Routes/Course/CourseAddPlaylist.php @@ -35,7 +35,7 @@ public function __invoke(Request $request, Response $response, $args) $perm_playlist = reset($playlist->perms->findBy('user_id', $user->id)->toArray()); // allow any perm for adding playlists to course user has access to - if (empty($perm_playlist) || !$perm->have_studip_perm('tutor', $course_id)) + if (empty($perm_playlist) && !$perm->have_studip_perm('tutor', $course_id)) { throw new \AccessDeniedException(); } diff --git a/vueapp/components/Playlists/PlaylistsLinkCard.vue b/vueapp/components/Playlists/PlaylistsLinkCard.vue index d1a58377..e07985c5 100644 --- a/vueapp/components/Playlists/PlaylistsLinkCard.vue +++ b/vueapp/components/Playlists/PlaylistsLinkCard.vue @@ -13,6 +13,7 @@ >