## Script (Python) "isStaff" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## # $Id: $ if context.portal_membership.isAnonymousUser(): return False return not context.isStudent() mtool = context.portal_membership member = mtool.getAuthenticatedMember() roles = member.getRolesInContext(context) return "Manager" in roles or\ "SectionManager" in roles or\ "SectionOfficer" in roles or\ "ClearanceOfficer" in roles or\ "ClearanceOfficers" in member.getGroups() or\ "CourseAdvisers" in member.getGroups()