[Zope-dev] several permissions for the same method

Jephte CLAIN Jephte.Clain@univ-reunion.fr
Fri, 21 Jul 2000 09:18:31 +0400


Chris Withers wrote:
> You could just check for the permissions specifically, here's a quote
> from Folder.py in Zope 2.2:
Yes. though it seems odd to create permissions not protecting any method
that are just meant to be checked.
calling a method that the current user is not not allowed to access
raises Unauthorized for you. I can just check 'manually' the permission
if I want to display a specific message.

thanks for your comments
jephte.clain@univ-reunion.fr