Ignore:
Timestamp:
16 Dec 2008, 07:43:06 (16 years ago)
Author:
Henrik Bettermann
Message:

improve security setting for lecturer course editing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/lecturer_course_edit.py

    r3818 r3820  
    5050lecturer_id = getattr(course,'lecturer',None)
    5151#set_trace()
    52 if str(lecturer_id) != member_id:
     52if str(lecturer_id) != member_id and not context.isSectionOfficer():
    5353    logger.info('%s tried to access course result %s of %s but is not a lecturer of this course' % (member_id,course_id,requested_id))
    5454    return REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
Note: See TracChangeset for help on using the changeset viewer.