[Zope] access rule and authentication
Krzysztof Kubacki
krzysztof.kubacki at bmpg.pl
Mon Oct 17 13:09:08 EDT 2005
Hi,
Python Script which is set as "Access Rule" for some Folder is execute before authentication is done.
This way the following code won't work
if context.portal_membership.getAuthenticatedUser().getId() == "admin":
return "dog"
return "cat"
I will always get "cat". So does somebody know how to resolve it?
Regards
Krzychula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20051017/a5dd5df2/attachment.htm
More information about the Zope
mailing list