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_academics/getDocumentInfo.py

    r556 r603  
    1515
    1616wf = context.portal_workflow
    17 mtool = context.portal_membership
    18 member = mtool.getAuthenticatedMember()
    1917path_info = request.get('PATH_INFO').split('/')
    2018
    2119info = {}
    22 member_id = str(member)
    23 roles = member.getRoles()
    24 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
    25 info['is_student'] = 'Student' in roles
     20info['is_manager'] = context.isManager
     21info['is_student'] = context.isStudent
    2622info['doc'] = context.getContent()
    2723return info
Note: See TracChangeset for help on using the changeset viewer.