I tried using unrestrictedSearchResults and got a security permission error, saying I didn't have permission to access unrestrictedSearchResults(). When I turned on verbose security, I got the following error: Unauthorized: The object is marked as private. Access to 'unrestrictedSearchResults' of (CatalogTool at /DCARF/project_file_system/portal_catalog) denied. How do I change the permissions so I can access this method? Thanks. Nick Martijn Pieters wrote:
On 2/17/06, Nicholas Watmough <nickw@deakin.edu.au> wrote:
I've set a proxy for the script so it runs as a Manager.
However, when I set a ZopeScheduler to run this script, I get an error where the ZCatalog doesn't find any results when I search for the PloneArticle instance. Now the article I am searching for is catalogued, so I'm not sure why this is happening.
This may be a problem with ZopeScheduler, or with Plone's catalog. Not sure which.
Any assistance would be appreciated.
The Catalog restricts it's results based on the current user rights, proxy roles do not play in that decision. Use unrestrictedSearchResults instead.
-- Martijn Pieters