Commit 913f3a8c authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added some comments to define placeholders for group support


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5216 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 48ed2a37
......@@ -364,7 +364,10 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
# Patch for ERP5 by JP Smets in order
# to implement worklists and search of local roles
# This allows for displaying results based on local roles
# rather than based on view permissions
if kw.has_key('local_roles'):
# XXX user is not enough - we should also include groups of the user
user = _getAuthenticatedUser(self)
# Only consider local_roles if it is not empty
if kw['local_roles'] != '' and kw['local_roles'] != [] and kw['local_roles'] is not None:
......@@ -402,7 +405,10 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
# Patch for ERP5 by JP Smets in order
# to implement worklists and search of local roles
# This allows for counting results based on local roles
# rather than based on view permissions
if kw.has_key('local_roles'):
# XXX user is not enough - we should also include groups of the user
user = _getAuthenticatedUser(self)
# Only consider local_roles if it is not empty
if kw['local_roles'] != '' and kw['local_roles'] != [] and kw['local_roles'] is not None:
......
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