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
 
_______________________________________________
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 )

Reply via email to