## Script (Python) "isStaff" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## # $Id: $ """ """ mtool = context.portal_membership if mtool.isAnonymousUser(): return False roles = mtool.getAuthenticatedMember().getRolesInContext(context) return not "Student" in roles