- Timestamp:
- 25 Nov 2008, 20:19:24 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/course_result_list.py
r3781 r3786 14 14 request = context.REQUEST 15 15 setheader = request.RESPONSE.setHeader 16 17 mtool = context.portal_membership 18 if mtool.isAnonymousUser(): 19 return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 20 member = mtool.getAuthenticatedMember() 21 member_id = str(member) 22 students_folder = context.portal_url.getPortalObject().campus.students 23 24 if not students_folder.isSectionOfficer(): 25 logger.info('%s tried to access %s' % (member_id,requested_id)) 26 return 'Not allowed' 27 28 29 16 30 cr = context.course_results 17 31 scat = context.students_catalog
Note: See TracChangeset for help on using the changeset viewer.