Ignore:
Timestamp:
1 Oct 2006, 10:21:09 (18 years ago)
Author:
Henrik Bettermann
Message:

batch of fixes to open the frontend for the first time

File:
1 edited

Legend:

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

    r544 r603  
    1717pm = context.portal_membership
    1818
    19 
    2019if pm.isAnonymousUser():
    2120    return redirect("%s/srp_anonymous_view" % context.absolute_url())
    2221
    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:
     22if context.isManager():
    3023    return redirect("%s/academics_contents" % context.absolute_url())
    31 if isStudent:
     24if context.isStudent():
    3225    info = context.getStudentInfo()
    3326    student = info['student']
Note: See TracChangeset for help on using the changeset viewer.