From d577c45bf9a9c7292523e591f0e258c1362bfe46 Mon Sep 17 00:00:00 2001
From: Alexandre Boeglin <alex@nexedi.com>
Date: Fri, 29 Jul 2005 15:54:56 +0000
Subject: [PATCH] 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
---
 product/ERP5/Document/BusinessTemplate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index 37a4b6c277..736f9e2a4d 100755
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -685,7 +685,7 @@ class ModuleTemplateItem(BaseTemplateItem):
       permission_list = []
       for permission in module.ac_inherited_permissions(1):
         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))
       mapping['permission_list'] = permission_list
       self._archive[id] = mapping
-- 
2.30.9