Changeset 603 for WAeUP_SRP/trunk/skins/waeup_default/isStudent.py
- Timestamp:
- 1 Oct 2006, 10:21:09 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_default/isStudent.py
r600 r603 10 10 # $Id: student_edit.py 486 2006-09-06 10:09:39Z joachim $ 11 11 """ 12 return True if the member is considered a Student in this context12 return True if the member is considered a Student 13 13 """ 14 14 request = context.REQUEST … … 18 18 member = mtool.getAuthenticatedMember() 19 19 path_info = request.get('PATH_INFO').split('/') 20 roles = member.getRolesInContext(context) 20 #roles = member.getRolesInContext(context) 21 roles = member.getRoles() # Student role is global 21 22 isStudent = "Student" in roles 22 isStaff = not isStudent23 isManager = "Manager" in roles or "SectionManager" in roles or isStaff24 23 return isStudent
Note: See TracChangeset for help on using the changeset viewer.