Ignore:
Timestamp:
3 Jan 2008, 17:20:02 (17 years ago)
Author:
joachim
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_epayment/getPaymentInfo.py

    r2058 r2975  
    2121        pass
    2222
    23 request = context.REQUEST
    24 mtool = context.portal_membership
    25 wf = context.portal_workflow
    26 member = mtool.getAuthenticatedMember()
    27 member_id = str(member)
     23# request = context.REQUEST
     24# mtool = context.portal_membership
     25# wf = context.portal_workflow
     26# member = mtool.getAuthenticatedMember()
     27# member_id = str(member)
    2828
    29 if mtool.isAnonymousUser():
     29# if mtool.isAnonymousUser():
     30#     return None
     31# info = {}
     32# requested_id = context.getStudentId()
     33# if requested_id and not context.isStaff() and member_id != requested_id:
     34#     logger.info('%s tried to access %s' % (member_id,requested_id))
     35#     return None
     36# elif context.isStaff():
     37#     student_id = requested_id
     38# else:
     39#     student_id = member_id
     40info = context.waeup_tool.getAccessInfo(context)
     41student_id = info['student_id']
     42if student_id is None:
    3043    return None
    31 info = {}
    32 requested_id = context.getStudentId()
    33 if requested_id and not context.isStaff() and member_id != requested_id:
    34     logger.info('%s tried to access %s' % (member_id,requested_id))
    35     return None
    36 elif context.isStaff():
    37     student_id = requested_id
    38 else:
    39     student_id = member_id
    4044
    4145
Note: See TracChangeset for help on using the changeset viewer.