From 08b0c2454fadf031adecc0040aea5ce3075e01e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jordi=20Puiggen=C3=A9?= Date: Tue, 24 Sep 2019 15:46:36 +0200 Subject: [PATCH] New Client contact has access to last Sample only --- CHANGES.rst | 1 + bika/lims/content/contact.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index e1a5bab0a1..ad9aaf0308 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -30,6 +30,7 @@ Changelog **Fixed** +- #1447 New Client contact has access to last client's Sample only - #1446 Parameter `group` in `contact._addUserToGroup` was not considered - #1444 Fixed Worksheet autofill of wide Iterims - #1443 Fix non-saving checkbox values for manual Interims in Analysis Services diff --git a/bika/lims/content/contact.py b/bika/lims/content/contact.py index 96d7620331..083ec98348 100644 --- a/bika/lims/content/contact.py +++ b/bika/lims/content/contact.py @@ -329,8 +329,8 @@ def _recursive_reindex_object_security(self, obj): """Reindex object security after user linking """ if hasattr(aq_base(obj), "objectValues"): - for obj in obj.objectValues(): - self._recursive_reindex_object_security(obj) + for child_obj in obj.objectValues(): + self._recursive_reindex_object_security(child_obj) logger.debug("Reindexing object security for {}".format(repr(obj))) obj.reindexObjectSecurity()