source: WAeUP_SRP/branches/uli/skins/waeup_default/isSectionManager.py @ 17946

Last change on this file since 17946 was 912, checked in by joachim, 18 years ago

=removed SectionManager? from getDynamicRoles, convert jamb_reg_no to uppercase

File size: 450 bytes
Line 
1## Script (Python) "isSectionManager"
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)
14context.REQUEST.set("roles",roles)
15return "SectionManager" in roles or\
16       "Manager" in roles
Note: See TracBrowser for help on using the repository browser.