Commit 65a65bb6 authored by Jérome Perrin's avatar Jérome Perrin

because this block was not indented, local roles were always reinstalled.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24777 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e1368341
......@@ -4243,11 +4243,11 @@ class LocalRolesTemplateItem(BaseTemplateItem):
action = update_dict[roles_path]
if action == 'nothing':
continue
path = roles_path.split('/')[1:]
obj = p.unrestrictedTraverse(path)
local_roles_dict, group_local_roles_dict = self._objects[roles_path]
setattr(obj, '__ac_local_roles__', local_roles_dict)
setattr(obj, '__ac_local_group_roles__', group_local_roles_dict)
path = roles_path.split('/')[1:]
obj = p.unrestrictedTraverse(path)
local_roles_dict, group_local_roles_dict = self._objects[roles_path]
setattr(obj, '__ac_local_roles__', local_roles_dict)
setattr(obj, '__ac_local_group_roles__', group_local_roles_dict)
def uninstall(self, context, **kw):
p = context.getPortalObject()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment