Rev | Line | |
---|
[2305] | 1 | from Products.ZCatalog.ZCatalog import ZCatalog |
---|
| 2 | def 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 | |
---|
| 13 | from Products.CMFCore import CatalogTool |
---|
| 14 | CatalogTool.searchResults = searchResults |
---|
Note: See
TracBrowser for help on using the repository browser.