source: WAeUP_SRP/trunk/patches/PatchCatalogToolSearchResults.py @ 16704

Last change on this file since 16704 was 3673, checked in by jens, 16 years ago
  • unclutter package by moving all patch files into a dedicated subfolder and importing it.
  • Property svn:keywords set to Id
File size: 511 bytes
Line 
1from Products.ZCatalog.ZCatalog import ZCatalog
2def searchResults(self, REQUEST=None, **kw):
3    """
4    Calls ZCatalog.searchResults with extra arguments that
5    limit the results to what the user is allowed to see.
6    don't do that for WAeUP
7    """
8    # user = _getAuthenticatedUser(self)
9    # kw[ 'allowedRolesAndUsers' ] = self._listAllowedRolesAndUsers( user )
10
11    return ZCatalog.searchResults(self, REQUEST, **kw)
12
13from Products.CMFCore import CatalogTool
14CatalogTool.searchResults = searchResults
Note: See TracBrowser for help on using the repository browser.