[Zope] CMF getMemberById and local roles

Dieter Maurer dieter@handshake.de
Thu, 10 Apr 2003 20:09:36 +0200


Etienne Labuschagne wrote at 2003-4-10 11:57 +0200:
 > ...
 > When stepping through the Python script that calls this, I can check the 
 > following:
 > 
 > context.portal_membership.checkPermission('Manage Portal',context)
 > this returns 0, thus saying that I don't have this permission.

Maybe, "context" is not what you expect:

    "checkPermission" is convinced that the current user
    does not have permission "Manage Portal" in the context
    of "context".


Dieter