From 6f33c8a86675fa86c85ab5a98920a9d02fd37d80 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Wed, 27 Sep 2017 09:19:14 +0200 Subject: [PATCH] Fixing motion comments (fixes #3420) --- openslides/motions/access_permissions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openslides/motions/access_permissions.py b/openslides/motions/access_permissions.py index 6bce24e9c..f631b1652 100644 --- a/openslides/motions/access_permissions.py +++ b/openslides/motions/access_permissions.py @@ -65,7 +65,7 @@ class MotionAccessPermissions(BaseAccessPermissions): # Set private comment fields to None. full_copy = deepcopy(full) for i, field in config['motions_comments'].items(): - if not field.get('public'): + if field is None or not field.get('public'): try: full_copy['comments'][i] = None except IndexError: @@ -90,7 +90,7 @@ class MotionAccessPermissions(BaseAccessPermissions): if full.get('comments') is not None: full_copy = deepcopy(full) for i, field in config['motions_comments'].items(): - if not field.get('public'): + if field is None or not field.get('public'): try: full_copy['comments'][i] = None except IndexError: