[Zope] AUTHENTICATED_USER problem
Tom Deprez
Tom.Deprez@uz.kuleuven.ac.be
Fri, 11 Jun 1999 13:16:55 +0200
Hi,
Have you looked at the security-example at www.master.cit.be/c8/default.html ?
I've explained a similar example there, I don't have a problem with the
reappearing of the dialog box...
I tested it in Zope 1.10.2 and Zope 1.11
Tom.
>Dear all,
>
>I wonder if anyone can help me, i have got some code that needs to check if
>a user has a certain role. I have used the code:
>
><!--#if expr="AUTHENTICATED_USER.has_role(['god'])"-->
><!--#call "REQUEST.set('isGod', 'true')"-->
><!--#/if-->
>
>to check if the user is in the GOD role i have created. When you log in to
>the site as GOD, the page works fine. However, if you log in as any other
>user that doesn't have the GOD role, the login dialog box appears a number
>of times asking for authorisation. The dialog box eventually stops appearing
>and the page appears as it should.
>
>Any ideas on the re-occurence of this dialog box??
>
>Any ideas would be appreciated,
>
>Cheers,
>
>Wom....
>
>
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://www.zope.org/mailman/listinfo/zope
>
>(For developer-specific issues, use the companion list,
>zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>