[Zope] strange behaviour of user.has_permission
robert
robert@redcor.ch
Fri, 2 May 2003 22:53:25 +0200
I am using Zope 2.61 on Suse 8.2
robert
Am Freitag, 2. Mai 2003 22:33 schrieb robert:
> 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 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
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
=2D-=20
mit freundlichen Gr=FCssen
Robert Rottermann
www.redCOR.ch