[Zope] Getting current object in an expression while in a dtml-in loop

HP Knoll knoll@camicad.com
Tue, 11 Mar 2003 06:22:39 +0100


Hi,

In my search results page I would like to display only those results where
the user has the permission to view those files. My question is: how do I
refer to the current object in a <dtml-in> loop?
I know that I could use <dtml-in Catalog skip_unauthorized> but it still
displays all results, even those where the user has absolutely no right.

Here is the example:

<dtml-in Catalog>
<dtml-if expr="_.SecurityGetUser().has_permission('View', OBJECT?????)">
...
</dtml-if>
</dtml-in>

Can anyone help?
Thanks
Hans