[Zope] How do I get the owner of a document?
Jonothan Farr
jfarr@real.com
Wed, 22 Mar 2000 23:31:23 -0800
> I may be misunderstanding your question, but if your user is authenticated
> you can use a construction like:
> <dtml-in expr="objectValues(['DTML Document', 'File'])"
> sort=bobobase_modification_time reverse>
> <dtml-if "AUTHENTICATED_USER.has_role('Owner', this())">
> <A HREF="<dtml-var id>"><dtml-var title></A>
> <dtml-else>
> <dtml-var title>
> </dtml-if>
> </dtml-in>
Sweet! That's even simpler than my solution. Yep, I've got a lot to learn about
Zope permissions alright. =)
-jfarr
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi! I'm a signature virus.
Copy me into your .sig to join the fun!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~