From d23269c8ea1a2143d12329a22fa662d6bda575dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 21 Jan 2019 09:35:30 +0100 Subject: [PATCH] reindex allowedRolesAndUsers after multi attribution (#29878) --- src/pfwbged/policy/browser/multi_attribute_task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pfwbged/policy/browser/multi_attribute_task.py b/src/pfwbged/policy/browser/multi_attribute_task.py index ceec272..e4129fd 100644 --- a/src/pfwbged/policy/browser/multi_attribute_task.py +++ b/src/pfwbged/policy/browser/multi_attribute_task.py @@ -69,6 +69,7 @@ class AttributeTasks(DefaultAddForm): for responsible in data['responsible']: nontask.manage_addLocalRoles(responsible, ['Editor',]) - nontask.reindexObjectSecurity() if 'attribute' in transition_ids: portal_workflow.doActionFor(nontask, 'attribute') + nontask.reindexObjectSecurity() + nontask.reindexObject(idxs=['allowedRolesAndUsers'])