[Zope-dev] AUTHENTICATED_USER.has_role !!

Maulin Doshi maulindoshi@hotmail.com
Fri, 15 Sep 2000 14:33:45 CEST


Hello all,

Please read the following code:
**********************************************************************
<dtml-if "AUTHENTICATED_USER.has_role('Vorstand')">
<dtml-with vorstand>
hello
<dtml-in neuanmeldungen_sql start=query_start>
  <dtml-if sequence-start>
   <p><a href="vorstand/freigeben_html">Neue Mitgliedsanträge sind 
eingegangen!</a></p>
  </dtml-if>
</dtml-in>

<dtml-in newNews_sql start=query_start>
  <dtml-if sequence-start>
<p><a href="vorstand/newNewsAuthoForm_html" >New News are waiting for your 
authorisation!</a></p>
  </dtml-if>
</dtml-in>


  <p><a href="vorstand/bankdaten_report">Bankdaten abfragen.</a></p>
<p><a href="vorstand/mass_email_form" >Send Mass Email to all 
Members</a></p>

   <hr size="1" />
</dtml-with>
</dtml-if>
**********************************************************************

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!!

Please help me with the reason for it and the way i can solve my purpose may 
be in the other way.

Looking forward to hear from u as soon as possible,

Maulin Doshi
Germany




_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.