## Script (Python) "isClearanceOfficer" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## # $Id: isClearanceOfficer.py 885 2006-11-17 16:06:47Z joachim $ mtool = context.portal_membership roles = mtool.getAuthenticatedMember().getRolesInContext(context) return "ClearanceOfficer" in roles