From 2c09b409d7ace6621f75d6d98fe2e4c1860d9687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Wed, 2 Nov 2016 00:09:59 +0100 Subject: [PATCH] Fix updating of motion comments for inmemory cache. get_restricted_data() has to use deepcopy(full_data) instead of full_data.copy(). --- openslides/motions/access_permissions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openslides/motions/access_permissions.py b/openslides/motions/access_permissions.py index 4f46c8b89..6eef443a8 100644 --- a/openslides/motions/access_permissions.py +++ b/openslides/motions/access_permissions.py @@ -1,3 +1,5 @@ +from copy import deepcopy + from ..core.config import config from ..utils.access_permissions import BaseAccessPermissions @@ -29,7 +31,7 @@ class MotionAccessPermissions(BaseAccessPermissions): if user.has_perm('motions.can_see_and_manage_comments') or not full_data.get('comments'): data = full_data else: - data = full_data.copy() + data = deepcopy(full_data) for i, field in enumerate(config['motions_comments']): if not field.get('public'): try: