[Zope] User acces to this()

James van der Veen james@codenamefuture.nl
Mon, 26 Nov 2001 15:29:00 +0100


 Hi everybody,
=20
 hope someone can help me.
=20
 I have a mySQLuserfolder with a role Called Student.=20
 I now only want to show a piece of the page if the user is=20
 logged in as a student so I have this in my DTML Method:
=20
 <dtml-if "AUTHENTICATED_USER.hasRole(this(), ['Student'])">
=20
 But If I log in having a student role I get a unauthorized=20
 exception saying I=B4m now authorized to access "this".
=20
 Does anyone have a hint to help me on this?
 Do I need to set a security role or something?
=20
 Hope someone can help me on this one.
=20
 Greetz,
 James
=20
=20