diff --git a/core/docs/images/evibes-big-simple.png b/core/docs/images/evibes-big-simple.png index 08ba5f8c..682ca927 100644 Binary files a/core/docs/images/evibes-big-simple.png and b/core/docs/images/evibes-big-simple.png differ diff --git a/core/viewsets.py b/core/viewsets.py index 2001618e..10647fea 100644 --- a/core/viewsets.py +++ b/core/viewsets.py @@ -428,6 +428,15 @@ class WishlistViewSet(EvibesViewSet): "list": WishlistSimpleSerializer, } + def get_queryset(self): + qs = super().get_queryset() + user = self.request.user + + if user.has_perm("core.view_wishlist"): + return qs + + return qs.filter(user=user) + @action(detail=False, methods=["get"], url_path="current") def current(self, request, *_args, **kwargs): if not request.user.is_authenticated: