source: WAeUP_SRP/trunk/skins/waeup_default/isSectionOfficer.py @ 1071

Last change on this file since 1071 was 911, checked in by Henrik Bettermann, 18 years ago

new local roles implemented
role SectionOfficer? not yet tested

File size: 452 bytes
RevLine 
[911]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
12mtool = context.portal_membership
13roles = mtool.getAuthenticatedMember().getRolesInContext(context)
14return "SectionManager" in roles or\
15       "Manager" in roles or\
16       "SectionOfficer" in roles
Note: See TracBrowser for help on using the repository browser.