[Zope] different pages depending of the role....

Phil Harris phil.harris@zope.co.uk
Thu, 3 Aug 2000 13:12:05 +0100


Vincent,

It's perfectly possible:

<dtml-if "AUTHENTICATED_USER.has_roles(['Manager'])">
this is the management page
<dtml-elif "AUTHENTICATED_USER.has_roles(['Member'])">
this is the normal members page
<dtml-else>
This is the joe public page
</dtml-if>

hth

Phil
phil.harris@zope.co.uk

----- Original Message -----
From: "Vincent" <vinc.del@wanadoo.fr>
To: "[Zope Org] (E-mail)" <zope@zope.org>
Sent: Thursday, August 03, 2000 1:43 PM
Subject: [Zope] different pages depending of the role....


> Hi,
>
> is it possible with Zope, to display different pages depending on the
roles
> of the logged people ?
>
> Thanks
>
> Vincent
>
> PS : If it is in a documentation, which one ? Thanks again
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )