[z3-five] view on several permissions?

Philipp von Weitershausen philipp at weitershausen.de
Sun Feb 18 12:57:11 CET 2007


Dennis Schulz wrote:
> is it possible to register a view on several permissions in zcml?
> I tried the following notations but didn't work:
> 
> permission="cmf.ListFolderContents; cells.pr.approve"
> permission="cmf.ListFolderContents, cells.pr.approve"
> 
> What is the proper way of doing this?
> Do I have to register the view two times?

Anything, including a view, can only have one unique permission. That's 
how Zope's security system works. You will have to make up your mind and 
decide which permission to protect the view with.


-- 
http://worldcookery.com -- Professional Zope documentation and training
Next Zope 3 training at Camp5: http://trizpug.org/boot-camp/camp5


More information about the z3-five mailing list