source: WAeUP_SRP/branches/regebro-noskins/skins/waeup_default/isSectionOfficer.py @ 11107

Last change on this file since 11107 was 1077, checked in by joachim, 18 years ago

files for custom

File size: 502 bytes
Line 
1## Script (Python) "isSectionOfficer"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=student=None
8##title=
9##
10# $Id: isManager.py 888 2006-11-17 21:28:48Z henrik $
11
12if context.isStudent():
13    return False
14mtool = context.portal_membership
15roles = mtool.getAuthenticatedMember().getRolesInContext(context)
16return "SectionOfficer" in roles or\
17       "SectionManager" in roles or\
18       "Manager" in roles
19       
Note: See TracBrowser for help on using the repository browser.