26 Mar
2002
26 Mar
'02
9:15 a.m.
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üße Mark Zimmermann
26 Mar
26 Mar
10:28 a.m.
New subject: [ZOPE] DTML-IF OR ?
Hello Mark.
<dtml-if "AUTHENTICATE_USER.has_role('Publisher','Manager','Writer')"> doesn't work :-(
It has to be a list (and there is a typo in your posting): Try: <dtml-if "AUTHENTICATED_USER.has_role(['Publisher','Manager','Writer'])"> Greetings Sven Rudolph -- Sven Rudolph, Programmierer GermanMedicalServices.de GmbH Unter den Eichen 5, 65195 Wiesbaden Tel.: 06 11 / 97 46 25 2
8777
Age (days ago)
8777
Last active (days ago)
1 comments
2 participants
participants (2)
-
Sven Rudolph -
Zimmermann, Mark