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_default/isStudent.py

    r600 r603  
    1010# $Id: student_edit.py 486 2006-09-06 10:09:39Z joachim $
    1111"""
    12 return True if the member is considered a Student in this context
     12return True if the member is considered a Student
    1313"""
    1414request = context.REQUEST
     
    1818member = mtool.getAuthenticatedMember()
    1919path_info = request.get('PATH_INFO').split('/')
    20 roles = member.getRolesInContext(context)
     20#roles = member.getRolesInContext(context)
     21roles = member.getRoles()  # Student role is global
    2122isStudent = "Student" in roles
    22 isStaff = not isStudent
    23 isManager = "Manager" in roles or "SectionManager" in roles or isStaff
    2423return isStudent
Note: See TracChangeset for help on using the changeset viewer.