[Zope] Access Rule getUserName problem

Andreas Jung lists at zopyx.com
Thu Aug 24 02:20:37 EDT 2006



--On 24. August 2006 16:16:20 +1000 Josh Burvill <jburvill at gmail.com> wrote:

> Hello,
>
> I have this script (see below) set as an access rule for a folder. When it
> is run directly it prints out the correct user. But when it runs
> indirectly
> as an access rule (ie when accessing some other object in the folder, the
> user is always "Anonymous User".
>
>

Authentication occurs *after* traversal. So the user will never be available
within an accessrule through the traversal phase.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060824/b70fce9d/attachment.bin


More information about the Zope mailing list