[Zope3-Users] Check permissions

Frank Burkhardt fbo2 at gmx.net
Fri Mar 17 08:01:41 EST 2006


Hi,

how can I test, if the current principal (e.g. by being member in a special
group) has a given permission on a given content object?

Maybe something like this:

 if 'zope.ManageContent' in self.context.permissions():
    """..."""

This should include all permission defined in ZCML *and* all permission
granted in ZMI.

Thank you for all hints.

Regards,

Frank


More information about the Zope3-users mailing list