[Zope] hiding site content based upon a domain? (similar to htaccess)

Tony McDonald tony.mcdonald@ncl.ac.uk
Fri, 6 Aug 1999 16:11:01 +0100


>
> >And I *still* get the main page showing up  and telling me I'm
>>AnonUser (ie the page I get is what I should see if I'm ValidUser).
>>
>>Does standard_html_header do some other voodoo that isn't plainly obvious?
>
>No.  The problem is that:
>
><!--#if "AUTHENTICATED_USER=='AnonUser'"-->
>
>Should be:
>
><!--#if "AUTHENTICATED_USER.name=='AnonUser'"-->
>
>Because AUTHENTICATED_USER is a user *object*, not a string.  The string
>representation of a user object is its .name attribute, but if you try to
>just compare a user object to a string, it will always fail.

Many thanks Indeed Phillip! - works like a charm!

onwards and upwards.....
tone.
------
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2