[Zope] Check to see if someone is a user, or anonymous

Rik Hoekstra rik.hoekstra@inghist.nl
Fri, 24 Mar 2000 10:46:21 +0100


Jonothan Farr wrote:
> 
> <dtml-if "REQUEST.has_key('AUTHENTICATED_USER')">

or rather

<dtml-if "AUTHENTICATED_USER.getUserName()!='Anonymous'">

as in:

<dtml-if "AUTHENTICATED_USER.getUserName()!='Anonymous'">
  whatever
<dtml-else>
   whatever else
</dtml-if>

Rik