[Zope-CMF] how do I get autenticated user
Robert Rottermann
robert@redcor.ch
Mon, 26 Nov 2001 14:47:58 +0100
Hi there,
I try to get the authenticated user from within breadcrumbs.py
I tried it as follows but it does not work.
Thanks
Robert
portal = context.portal_url.getPortalObject()
pm = context.getToolByName(portal, 'portal_membership')
member = pm.getAuthenticatedMember()
if(mtool.getAuthenticatedMember.hasRole( context, ['Mitarbeiter'] )):
root_url = "%s/folder_contents" % portal_url
else:
root_url = portal_url