[Zope] ZClass and Add/Permission

Dieter Maurer dieter@handshake.de
Sat, 28 Jun 2003 20:03:25 +0200


Andreas Pakulat wrote at 2003-6-28 12:29 +0200:
 > On 27.Jun 2003 - 20:21:45, Dieter Maurer wrote:
 > > Andreas Pakulat wrote at 2003-6-27 12:40 +0200:
 > >  > I've got a Problem here with 2 ZClasses I created. The first one -
 > >  > SemsesterClass is derived from ObjectManager, to allow me to put
 > >  > instances of the second - LectureClass - into it. I want to do this with
 > >  > the following code in LectureClass_add:
 > >  > 
 > >  > context.LectureClass.createInObjectManager(request['id'],request)
 > >  > 
 > >  > But for this I have to be in a manager's role, even though I added the
 > >  > Add Lecture Permission to the webeditor role (which will be used for the
 > >  > logged in users).
 > > 
 > > This is usually not necessary...
 > > Though, I cannot tell you why it does not work for you.
 > 
 > You mean, I do not have to have the right Add Lectures to add Instances
 > of this ZClass to my site? I can't believe that.

Of course, I do not mean that (you do not need the respective "add" right).

Of course, I mean that you do not have to be Manager
(wasn't this your problem?).


Dieter