[Zope-CMF] Customised permissions

Wichert Akkerman wichert at wiggy.net
Wed Jun 3 07:05:24 EDT 2009


Previously Charlie Clark wrote:
> Hi,
> 
> this should be a no-brainer but apart from a recent discussion on the  
> death of local permissions I can't much on it - how do I use custom  
> permissions?
> 
> I've added them in to zcml but they don't crop up in the security  
> interfaces and, surprise, surprise, I get an error when I try and  
> import a role map that uses them.
> 
> <permission
> 	id="charlie.can do everything"
> 	title="Only rulerz can have this permission
> />
> 
> Do I need additional Python calls to the security modules to register  
> this?

Not if you use collective.autopermission.

Wichert.

-- 
Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.


More information about the Zope-CMF mailing list