diff --git a/program/views.py b/program/views.py index 870da0c99c054940155ecc1892c1ced1a64c3458..a47d00cea91d84b663046808ace79f8191dae327 100644 --- a/program/views.py +++ b/program/views.py @@ -1638,20 +1638,12 @@ class APIPlaylistViewSet(viewsets.ModelViewSet): serializer_class = PlaylistSerializer def get_queryset(self): - """The queryset is empty if the request is not authenticated, it contains all the playlists - if the request method is safe or if the requesting user has the `create_playlist` or the - `update_playlist`, otherwise it only contains playlists for shows owned by the - requesting user.""" + """The queryset is empty if the request is not authenticated. Otherwise, it contains all + the playlists.""" user = self.request.user if not user.is_authenticated: return Playlist.objects.none() - elif ( - self.request.method in permissions.SAFE_METHODS - or user.has_perm("program.create_playlist") - or user.has_perm("program.update_playlist") - ): - return Playlist.objects.all() - else: - return Playlist.objects.filter(show__owners=user) + + return Playlist.objects.all()