From a47e30c8f14033e28b64ecaeb06d1c823ece9221 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Tue, 8 Nov 2016 23:13:15 +0100 Subject: [PATCH] Fixes user permissions Fix #2597 --- openslides/users/access_permissions.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openslides/users/access_permissions.py b/openslides/users/access_permissions.py index eed1020b7..8540efd3e 100644 --- a/openslides/users/access_permissions.py +++ b/openslides/users/access_permissions.py @@ -58,9 +58,10 @@ class UserAccessPermissions(BaseAccessPermissions): fields = USERCANSEESERIALIZER_FIELDS # Let only some fields pass this method. data = {} - for key in full_data.keys(): - if key in fields: - data[key] = full_data[key] + for base_key in fields: + for key in (base_key, base_key + '_id'): + if key in full_data.keys(): + data[key] = full_data[key] return data def get_projector_data(self, full_data):