Ignore:
Timestamp:
7 Nov 2006, 12:42:13 (18 years ago)
Author:
joachim
Message:

fixed anonymous view

File:
1 edited

Legend:

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

    r785 r787  
    2626member_id = str(member)
    2727if 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:
    2931        student_id = path_info[path_info.index('students')+1]
    30     elif member_id == "Anonymous User":
    31         return None
    3232    else:
    3333        student_id = member_id
    3434else:
    3535    student_id = student.getId()
    36 student_path = "/srp/campus/students/%s" % student_id
     36student_path = "%s/campus/students/%s" % (context.portal_url.getPortalPath(),student_id)
    3737student = context.restrictedTraverse(student_path,default=None)
    3838if student is None or student.portal_type != 'Student':
Note: See TracChangeset for help on using the changeset viewer.