[Zope-dev] AUTHENTICATED_USER.has_role !!

Dieter Maurer dieter@handshake.de
Fri, 15 Sep 2000 22:46:18 +0200 (CEST)


Maulin Doshi writes:
 > <dtml-if "AUTHENTICATED_USER.has_role('Vorstand')">
 > The above code use to worked very OK with Zope version: Zope 2.1.6 (binary 
 > release, python 1.5.2, linux2-x86). But now when I have upgraded to Zope 
 > version: Zope 2.2.1 (binary release, python 1.5.2, linux2-x86), I dont find  
 > "<dtml-if "AUTHENTICATED_USER.has_role('Vorstand')">" working the way it use 
 > to!!
How did it work in 2.1.6 and how does it work now?

It should return true iff the current user has role 'Vorstand' --
in 2.1.6 as well as in 2.2.1.


Dieter