[Zope-CMF] Re: Custom workflow behaviour with DC Workflow

yuppie y.2004_ at wcm-solutions.de
Sun Feb 15 16:38:11 EST 2004


Gitte Wange wrote:
> I'm trying to create a workflow with a different behaviour than usual.
> This workflow will have a 'visible' state. When an object is in the 
> visible state, it should show up for Anonymous Users and Members when 
> doing a catalog query. But when an Anonymous User click's the link to 
> the visible object, the user shouldn't be allowed to view the object.
> 
> How to achieve this behaviour? Have tried to give Anonymous User the 
> 'Access contents information' permission in the visible state but not 
> the 'View' permission - this didn't work :-(

This behavior is hardcoded in CatalogTool. I guess your only chance to 
customize this behavior is to use your own subclassed CatalogTool. 
Modify _listAllowedRolesAndUsers or allowedRolesAndUsers.

HTH, Yuppie






More information about the Zope-CMF mailing list