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): ...@@ -4243,11 +4243,11 @@ class LocalRolesTemplateItem(BaseTemplateItem):
action = update_dict[roles_path] action = update_dict[roles_path]
if action == 'nothing': if action == 'nothing':
continue continue
path = roles_path.split('/')[1:] path = roles_path.split('/')[1:]
obj = p.unrestrictedTraverse(path) obj = p.unrestrictedTraverse(path)
local_roles_dict, group_local_roles_dict = self._objects[roles_path] local_roles_dict, group_local_roles_dict = self._objects[roles_path]
setattr(obj, '__ac_local_roles__', local_roles_dict) setattr(obj, '__ac_local_roles__', local_roles_dict)
setattr(obj, '__ac_local_group_roles__', group_local_roles_dict) setattr(obj, '__ac_local_group_roles__', group_local_roles_dict)
def uninstall(self, context, **kw): def uninstall(self, context, **kw):
p = context.getPortalObject() 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