Changeset 1957 for WAeUP_SRP/trunk/skins/waeup_default/isSectionOfficer.py
- Timestamp:
- 25 Jun 2007, 18:45:38 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_default/isSectionOfficer.py
r1077 r1957 10 10 # $Id: isManager.py 888 2006-11-17 21:28:48Z henrik $ 11 11 12 if context.isStudent(): 12 member = context.portal_membership.getAuthenticatedMember() 13 member_id = str(member) 14 for c in member_id: 15 is_student = True 16 if c not in ('0123456789'): 17 is_student = False 18 break 19 if is_student and len(member_id) == 7: 13 20 return False 14 mtool = context.portal_membership 15 roles = mtool.getAuthenticatedMember().getRolesInContext(context) 21 # if context.isStudent(): 22 # return False 23 roles = member.getRolesInContext(context) 16 24 return "SectionOfficer" in roles or\ 17 25 "SectionManager" in roles or\
Note: See TracChangeset for help on using the changeset viewer.