[Zope-CMF] Portal-action:condition prevents logging in
Robert Rottermann
robert@redcor.ch
Sat, 22 Jun 2002 22:53:34 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_000B_01C21A3F.A3218520
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I created a new Portal-Action=20
Name Collector
Id Collector
Action string: $portal_url/Collector/collector_contents
Condition python: 'Staffmember' in =
portal.portal_membership.getPortalRoles()
Permission view
Category global_tabs
Visible? 1
When I use the condition as indicated It is not possible to log into the =
portal anymore.
What I want do do, is only show tab when the user has an appropriate =
role.
Where fails my resonig?
thanks for your time
Robert
------=_NextPart_000_000B_01C21A3F.A3218520
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I created a new Portal-Action =
</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2><BR>Name =20
Collector<BR>Id &nbs=
p; Collector<BR>Action =20
string: =
$portal_url/Collector/collector_contents<BR>Condition =20
python: 'Staffmember' in=20
portal.portal_membership.getPortalRoles()<BR>Permission =20
view<BR>Category =
global_tabs<BR>Visible? =20
1</DIV>
<DIV> </DIV>
<DIV>When I use the condition as indicated It is not possible to log =
into the=20
portal anymore.<BR>What I want do do, is only show tab when the user has =
an=20
appropriate role.</DIV>
<DIV> </DIV>
<DIV>Where fails my resonig?</DIV>
<DIV> </DIV>
<DIV>thanks for your time</DIV>
<DIV> </DIV>
<DIV>Robert</DIV>
<DIV> </DIV>
<DIV></FONT> </DIV></BODY></HTML>
------=_NextPart_000_000B_01C21A3F.A3218520--