Skip to content

Commit e285972

Browse files
committed
Remove the alias that links the searchResults method to the call of the portal catalog
Fixes #4248
1 parent 0c565b6 commit e285972

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

news/4248.bugfix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove the alias that links the searchResults method to the call of the portal catalog

src/Products/CMFPlone/CatalogTool.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,9 @@ def searchResults(self, query=None, **kw):
440440

441441
return ZCatalog.searchResults(self, query, **kw)
442442

443-
__call__ = searchResults
443+
@security.protected(ManageZCatalogEntries)
444+
def __call__(self, *args, **kwargs):
445+
return self.searchResults(*args, **kwargs)
444446

445447
def search(self, query, sort_index=None, reverse=0, limit=None, merge=1):
446448
# Wrap search() the same way that searchResults() is

0 commit comments

Comments
 (0)