[ZOPE] DTML-IF OR ?
Zimmermann, Mark
MarkZimmermann@schmuecker.de
Tue, 26 Mar 2002 10:15:57 +0100
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C1D4A6.D688BE30
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
my dtml document must check the role of a user.
only if the user has the role
manager
or publisher
or writer
the content will be displayd
How can i create a dtml-if tag ?
Something like <dtml-if
AUTHENTICATE_USER.has_role('Publisher','Manager','Writer')"> doesn't =
work
:-(
Viele Gr=FC=DFe
Mark Zimmermann=20
------_=_NextPart_001_01C1D4A6.D688BE30
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.45">
<TITLE>[ZOPE] DTML-IF OR ?</TITLE>
</HEAD>
<BODY>
<BR>
<P><FONT SIZE=3D2>Hi,</FONT>
<BR><FONT SIZE=3D2>my dtml document must check the role of a =
user.</FONT>
</P>
<P><FONT SIZE=3D2>only if the user has the role</FONT>
<BR><FONT SIZE=3D2>manager</FONT>
<BR><FONT SIZE=3D2>or publisher</FONT>
<BR><FONT SIZE=3D2>or writer</FONT>
</P>
<P><FONT SIZE=3D2>the content will be displayd</FONT>
</P>
<P><FONT SIZE=3D2>How can i create a dtml-if tag ?</FONT>
</P>
<P><FONT SIZE=3D2>Something like <dtml-if =
AUTHENTICATE_USER.has_role('Publisher','Manager','Writer')"> =
doesn't work :-(</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=3D2>Viele Gr=FC=DFe</FONT>
<BR><FONT SIZE=3D2>Mark Zimmermann </FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C1D4A6.D688BE30--