## Script (Python) "isSectionOfficer"
##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 $

if context.isStudent():
    return False
mtool = context.portal_membership
roles = mtool.getAuthenticatedMember().getRolesInContext(context)
return "SectionOfficer" in roles or\
       "SectionManager" in roles or\
       "Manager" in roles 
       
