From a4ae174a94b3207247db57a3ab91dc3900b5b665 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Thu, 21 Sep 2017 12:43:07 +0200 Subject: [PATCH] Fixing motion access permissions --- 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 19a9f4171..6bce24e9c 100644 --- a/openslides/motions/access_permissions.py +++ b/openslides/motions/access_permissions.py @@ -64,7 +64,7 @@ class MotionAccessPermissions(BaseAccessPermissions): else: # Set private comment fields to None. full_copy = deepcopy(full) - for i, field in enumerate(config['motions_comments']): + for i, field in config['motions_comments'].items(): if not field.get('public'): try: full_copy['comments'][i] = None @@ -89,7 +89,7 @@ class MotionAccessPermissions(BaseAccessPermissions): # Set private comment fields to None. if full.get('comments') is not None: full_copy = deepcopy(full) - for i, field in enumerate(config['motions_comments']): + for i, field in config['motions_comments'].items(): if not field.get('public'): try: full_copy['comments'][i] = None