[Zope-dev] ZClass Creation Permission

Heiko Stoermer Heiko Stoermer <heiko.stoermer@innominate.de>
Thu, 27 Apr 2000 16:23:38 +0200


Fabio Augusto Mazzarino wrote:
> 
>  Hi folks:
> 
>  I'm trying to programatly create an ZClass. But I am facing some problems.
>  With a superuser my ZClass, called AutoForum, is created normally, but when
> I try to create it with an anonymous user, it does not, it requires a
> password (wich anonymous user dont have), I have even tried to give all
> rights to anonymous, but it still doesnt work.
>  This ZClass is pretty simple, it simply catches a ForumNews Object
> (inherithed from Folder), and clones it into the current directory, i do
> this by using a Factory.
>  What can I do to have anonymous users creating new AutoForums???
> 

the problem is that adding a ZClass requires some sort of "manage_*"
call and thus requires "manager" permissions to do so.
A solution I have used for this is to give the method that calls
manage_* manager permissions via proxy role.

hope this helps,
Heiko

-- 
heiko.stoermer@innominate.de
                                                        innominate AG
                                                     networkingpeople
fon: +49.30.308806-0 fax: -77               web: http://innominate.de