source: WAeUP_SRP/branches/joachim-event-branch/skins/waeup_default/isCourseAdviser.py @ 1558

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

merged trunk up to 1557

File size: 603 bytes
Line 
1## Script (Python) "isClearanceOfficer"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=
8##title=
9##
10# $Id: isClearanceOfficer.py 1087 2006-12-18 22:13:31Z joachim $
11
12#from Products.zdb import set_trace
13#set_trace()
14if context.isStudent():
15    return False
16mtool = context.portal_membership
17roles = mtool.getAuthenticatedMember().getRolesInContext(context)
18<<<<<<< .working
19return str("CourseAdviser" in roles)
20=======
21return str("CourseAdviser" in roles)
22return "CourseAdviser" in roles
23>>>>>>> .merge-rechts.r1557
24
Note: See TracBrowser for help on using the repository browser.