Commit f5127ab4 authored by Jérome Perrin's avatar Jérome Perrin

make getSecurityQuery public, so that restricted environement can use...

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
parent b150f62a
...@@ -449,7 +449,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): ...@@ -449,7 +449,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
return allowedRolesAndUsers, role_column_dict return allowedRolesAndUsers, role_column_dict
security.declarePrivate('getSecurityQuery') security.declarePublic( 'getSecurityQuery' )
def getSecurityQuery(self, query=None, **kw): def getSecurityQuery(self, query=None, **kw):
""" """
Build a query based on allowed roles (DEPRECATED) Build a query based on allowed roles (DEPRECATED)
......
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