From 7da48efd4cde5bb69b0327af853831786768e3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Thu, 3 Mar 2016 00:23:41 +0100 Subject: [PATCH] Fixed TypeError in agenda views. Fixed #2023. --- openslides/agenda/views.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openslides/agenda/views.py b/openslides/agenda/views.py index 43501892d..3881170dd 100644 --- a/openslides/agenda/views.py +++ b/openslides/agenda/views.py @@ -68,11 +68,10 @@ class ItemViewSet(ListModelMixin, RetrieveModelMixin, UpdateModelMixin, GenericV """ Filters organizational items if the user has no permission to see them. """ - queryset = super().get_queryset() if self.request.user.has_perm('agenda.can_see_hidden_items'): - return queryset + return super().get_queryset() else: - return Item.objects.get_only_agenda_items(queryset) + return Item.objects.get_only_agenda_items() @detail_route(methods=['POST', 'DELETE']) def manage_speaker(self, request, pk=None):