[Zope] checking permissions

Dieter Maurer dieter@handshake.de
Mon, 29 Apr 2002 22:22:19 +0200


A M Thomas writes:
 > I'm trying to make my own management view links, and can't find the
 > correct way to test for whether a method can be used by the current user
 > based on just the method name.  Here's a section of my python code:
I am not sure whether it will work correctly, but you may try it:

     _.SecurityValidateValue(your_method)


Dieter