Commit d577c45b authored by Alexandre Boeglin's avatar Alexandre Boeglin

Fixed Permission issue : getRoles in AccessControl/Permission.py returns

  ['Manager'] by default when no role is defined locally for the
  Permission.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3515 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 23ed60b4
...@@ -685,7 +685,7 @@ class ModuleTemplateItem(BaseTemplateItem): ...@@ -685,7 +685,7 @@ class ModuleTemplateItem(BaseTemplateItem):
permission_list = [] permission_list = []
for permission in module.ac_inherited_permissions(1): for permission in module.ac_inherited_permissions(1):
name, value = permission[:2] name, value = permission[:2]
role_list = Permission(name, value, module).getRoles() role_list = Permission(name, value, module).getRoles(default=[])
permission_list.append((name, role_list)) permission_list.append((name, role_list))
mapping['permission_list'] = permission_list mapping['permission_list'] = permission_list
self._archive[id] = mapping self._archive[id] = mapping
......
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