From 2b56ffe3243fd9fe458fb445ebb9e84270b86cc9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 8 Aug 2006 09:34:35 +0000
Subject: [PATCH] Do not use _listAllowedRolesAndUsers from CMFCore.CatalogTool
 because it might have been monkey patched by NuxUserGroup already.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9083 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Catalog/CatalogTool.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/product/ERP5Catalog/CatalogTool.py b/product/ERP5Catalog/CatalogTool.py
index 23aabd3680..c2ba85c6db 100644
--- a/product/ERP5Catalog/CatalogTool.py
+++ b/product/ERP5Catalog/CatalogTool.py
@@ -277,7 +277,9 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
       security_product = getSecurityProduct(self.acl_users)
       if security_product == SECURITY_USING_PAS:
         # We use ERP5Security PAS based authentication
-        result = CMFCoreCatalogTool._listAllowedRolesAndUsers(self, user)
+        result = list( user.getRoles() )
+        result.append( 'Anonymous' )
+        result.append( 'user:%s' % user.getId() )
         # deal with groups
         getGroups = getattr(user, 'getGroups', None)
         if getGroups is not None:
-- 
2.30.9