[Zope] local roles

Marie Robichon robichon@esrf.fr
Fri, 06 Dec 2002 16:25:27 +0100


Hi,
I have a user with a local role of Job Manager.  How do I test for this 
local role ?

<dtml-if "'JobManager' in _.SecurityGetUser().getRoles()">....</dtml-if> 
does not work

The following just gives me 'Authenticated' as her role, since no actual 
role is defined at root level for her.

<dtml-var "_.SecurityGetUser().getRoles()">


TIA

Marie Robichon

Web Task Force
European Synchrotron Radiation Facility
BP 220
38043 Grenoble Cedex
France


Tel: (33) 04 76 88 21 86
Fax: (33) 04 76 88 24 27