Hello,<br><br>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 &quot;Anonymous User&quot;.
<br><br>I am using Zope 2.8.6-final, python 2.3.5, win32.<br><br>I am
using simpleuserfolder and sessioncrumbler in part of the site, but it
also happens with a regular user folder and normal http authentication.<br><br>Thanks
<br><br>request=container.REQUEST<br><br>the_user=_.SecurityGetUser()<div id="mb_1">.getUserName()<br><div>print the_user<br><br>context.audit_trail_sql(bigbird_user=the_user, \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; request_form=request.form, \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; request_url=request['ACTUAL_URL'], \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; client_ip=request['REMOTE_ADDR'])<br><br>return printed<br></div></div>