diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2022-05-30 19:43:47 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2022-05-30 19:43:48 +0200 |
commit | b7717e71de8796e4cbd43ae011abd7c2ed6b2870 (patch) | |
tree | 93d3035d8503fddb001be1003dc3a21666c0f84a /client | |
parent | disable debug for materialize fix (diff) | |
download | scout-subs-b7717e71de8796e4cbd43ae011abd7c2ed6b2870.tar.gz scout-subs-b7717e71de8796e4cbd43ae011abd7c2ed6b2870.zip |
doclist group filter work as expected
Diffstat (limited to 'client')
-rw-r--r-- | client/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
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("/") |