Changeset 787
- Timestamp:
- 7 Nov 2006, 12:42:13 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_default/isManager.py
r603 r787 23 23 roles = member.getRoles() 24 24 isStudent = "Student" in roles 25 isStaff = not isStudent 25 isStaff = not isStudent and not mtool.isAnonymousUser() 26 26 #isManager = "Manager" in roles or "SectionManager" in roles or isStaff 27 27 isManager = isStaff -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r785 r787 26 26 member_id = str(member) 27 27 if student is None: 28 if context.isManager() and 'students' in path_info: 28 if mtool.isAnonymousUser(): 29 return None 30 elif context.isManager() and 'students' in path_info: 29 31 student_id = path_info[path_info.index('students')+1] 30 elif member_id == "Anonymous User":31 return None32 32 else: 33 33 student_id = member_id 34 34 else: 35 35 student_id = student.getId() 36 student_path = " /srp/campus/students/%s" % student_id36 student_path = "%s/campus/students/%s" % (context.portal_url.getPortalPath(),student_id) 37 37 student = context.restrictedTraverse(student_path,default=None) 38 38 if student is None or student.portal_type != 'Student':
Note: See TracChangeset for help on using the changeset viewer.