[Zope] strange behaviour of user.has_permission
robert
robert@redcor.ch
Fri, 2 May 2003 22:33:07 +0200
Hi there,
I have a freshly created plone portal.
I added a user "schmid" with no roles at all
I added a document "Doc"
Then I created a script that tested for all permissions wheter user schmid =
has=20
it.
The following script returned true on every permission.
This is very wrong.
What is the problem ??
user =3D context.acl_users.getUserById('schmid')
for p in context.possible_permissions():
print " %s, %s" % (,p, user.has_permission(p, context))
return printed
mit freundlichen Gr=FCssen
Robert Rottermann
www.redCOR.ch