[Zope] superuser

Dmitry B. Khlonin Dmitry B. Khlonin" <khl@paloma.spbu.ru
Fri, 11 Jun 1999 00:42:50 +0400


This is a multi-part message in MIME format.

------=_NextPart_000_0074_01BEB3A3.55223960
Content-Type: text/plain;
	charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

How I may differentiate in the DTML method or
external method=20
the superuser from the rest users?
f.e.
<!--#if "authenticated_user =3D=3D superuser()"-->
This is superuser.
<!--#else-->
This is not superuser.
<!--#/if-->

------=_NextPart_000_0074_01BEB3A3.55223960
Content-Type: text/html;
	charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Dkoi8-r http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>How I may differentiate in the DTML =
method=20
or</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT><FONT size=3D2>external =
method=20
</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>the superuser from the rest =
users?</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>f.e.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>&lt;!--#if &quot;authenticated_user =
=3D=3D=20
superuser()&quot;--&gt;</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>This is superuser.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>&lt;!--#else--&gt;</FONT></DIV>
<DIV>
<DIV><FONT color=3D#000000 size=3D2>This is not =
superuser.</FONT></DIV></DIV>
<DIV><FONT color=3D#000000 =
size=3D2>&lt;!--#/if--&gt;</FONT></DIV></BODY></HTML>

------=_NextPart_000_0074_01BEB3A3.55223960--