Bart Holthuijsen wrote:
> This works for a User with the role Manager, but not with a user-defined
> role. I have created a Viewer class with all the available permissions (for
> testing purposes), but the above code returns nothing. If I remove the "and
> AUTHENTICATED_USER.has_permission('View',_.getitem('id',1)) " part it does
> show up. What should I do to make that part work?

Try giving your DTML method a proxy role or 'Manager'...

cheers,

Chris

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to