[Zope-CMF] DCWorkflow: Worklist visible to a special member

John Morton jwm@plain.co.nz
Thu, 13 Feb 2003 22:00:10 +1300


On Thu, 13 Feb 2003 04:40, Rainer Thaden wrote:
> Hi,
>
> i'm trying to display a worklist for rejected items.
> When content submitted by a member is rejected, it falls into the
> state 'rejected'. When the member logs in i want him to see 'Rejected
> Items' analog to 'Pending review'. I added a worklist and searched the
> portal_catalog for all items in the rejected state, which worked fine
> but now the rejected items are displayed to all logged in members.
> I want only the owner of that content to see it.
>
> What do i have to enter in the 'Guard' property in the worklist to
> make the worklist visible to only the one who submitted the content?

Don't use the 'Guard' property in the worklists. They don't work the way 
you'd expect. Instead, make sure that only the owner (and, say, reviewers, or 
whoever) can see the content when it's in the 'rejected' state by tweaking 
the appropriate permissions matrix in the workflow. 

The online help pages for DCWorkflow should have all the sordid details of 
why this is so.

John