## Script (Python) "isSectionManager"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=student=None
##title=
##
# $Id: isManager.py 888 2006-11-17 21:28:48Z henrik $

mtool = context.portal_membership
roles = mtool.getAuthenticatedMember().getRolesInContext(context)
context.REQUEST.set("roles",roles)
return "SectionManager" in roles or\
       "Manager" in roles
