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