Changeset 603 for WAeUP_SRP/trunk/skins/waeup_student/student_index.py
- Timestamp:
- 1 Oct 2006, 10:21:09 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/student_index.py
r544 r603 17 17 pm = context.portal_membership 18 18 19 20 19 if pm.isAnonymousUser(): 21 20 return redirect("%s/srp_anonymous_view" % context.absolute_url()) 22 21 23 24 member = pm.getAuthenticatedMember() 25 roles = member.getRoles() 26 isManager = "Manager" in roles or "SectionManager" in roles 27 isStudent = "Student" in roles 28 29 if isManager: 22 if context.isManager(): 30 23 return redirect("%s/academics_contents" % context.absolute_url()) 31 if isStudent:24 if context.isStudent(): 32 25 info = context.getStudentInfo() 33 26 student = info['student']
Note: See TracChangeset for help on using the changeset viewer.