From b7717e71de8796e4cbd43ae011abd7c2ed6b2870 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Mon, 30 May 2022 19:43:47 +0200 Subject: doclist group filter work as expected --- client/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/views.py b/client/views.py index a6087aa..f69b614 100644 --- a/client/views.py +++ b/client/views.py @@ -177,7 +177,7 @@ def create(request): # user is cheating abort return HttpResponseRedirect("/") - if not document_type.custom_group and document_type.group.name not in request.user.groups.values_list('name', flat=True): + if document_type.group_private and document_type.group.name not in request.user.groups.values_list('name', flat=True): # user is cheating abort return HttpResponseRedirect("/") -- cgit v1.2.1