From f5127ab47c7b8566513f57807194b42412c1d3ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 9 Mar 2007 13:15:13 +0000 Subject: [PATCH] make getSecurityQuery public, so that restricted environement can use portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery(), **kw) to build security aware queries git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13302 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Catalog/CatalogTool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Catalog/CatalogTool.py b/product/ERP5Catalog/CatalogTool.py index 7f66b5f21c..ec44dbe2e1 100644 --- a/product/ERP5Catalog/CatalogTool.py +++ b/product/ERP5Catalog/CatalogTool.py @@ -449,7 +449,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): return allowedRolesAndUsers, role_column_dict - security.declarePrivate('getSecurityQuery') + security.declarePublic( 'getSecurityQuery' ) def getSecurityQuery(self, query=None, **kw): """ Build a query based on allowed roles (DEPRECATED) -- 2.30.9