diff --git a/ipynbsrv/api/views.py b/ipynbsrv/api/views.py index 4119d92..545433c 100644 --- a/ipynbsrv/api/views.py +++ b/ipynbsrv/api/views.py @@ -723,7 +723,7 @@ def get_queryset(self): collab_group = self.request.user.backend_user.get_collaboration_group() if collab_group: queryset = ContainerImage.objects.filter( - Q(is_internal=False) & (Q(owner=self.request.user) | Q(is_public=True) | Q(access_groups=collab_group)) + Q(is_internal=False) & (Q(owner=self.request.user) | Q(is_public=True) | Q(access_groups__user=self.request.user)) ).distinct() else: queryset = ContainerImage.objects.filter( diff --git a/ipynbsrv/web/templates/web/containers/index.html b/ipynbsrv/web/templates/web/containers/index.html index f2584bf..7c4ec95 100644 --- a/ipynbsrv/web/templates/web/containers/index.html +++ b/ipynbsrv/web/templates/web/containers/index.html @@ -23,6 +23,12 @@