[Zope] [Q] Anonymous User fails authentication ...

Darran Edmundson Darran.Edmundson@anu.edu.au
Mon, 29 Nov 1999 11:44:00 +1100


Can someone explain the following?  I create a method
in my ZODB root containing the following DTML:

<dtml-var standard_html_header>
  user:     <dtml-var "AUTHENTICATED_USER.getUserName()"><br>
  can view: <dtml-var
"AUTHENTICATED_USER.has_permission('View',_.getitem('id',1))"><br>
<dtml-var standard_html_footer>

If I run this snippet for a logged in user, I get:

	user: dee124
	can view: 1

However, for a user who has not logged in, I get:

	user: Anonymous User
	can view: 0

even though the ZODB root shows that Anonymous has
"View" permission.  Is this a bug in Zope?

Cheers,
Darran.

-- 
Darran Edmundson [Darran.Edmundson@anu.edu.au]