Hi
What was easy for me with htaccess files is now awful with Zope :) Just joking... but I sure miss something.
I'd like to avoid any visit (except my managers) from outside on my Zope project... How to do that ? I've tried stuff like the following
<!--#if "AUTHENTICATED_USER.name=='AnonUser'"--> <!--#call "RESPONSE.redirect('denied')"--> <!--#/if-->
But none works
Arnaud, The anonymous user's name is 'Anonymous' - try: <!--#if "AUTHENTICATED_USER.getUserName()=='Anonymous'"--> <!--#call "RESPONSE.redirect('denied')"--> <!--#/if--> Note that you should use the getUserName() method of the user object instead of looking for the .name attribute, since the .name attribute may not be present for users generated from databases, ldap or other sources. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
participants (1)
-
Brian Lloyd