Changeset 2939


Ignore:
Timestamp:
13 Dec 2007, 08:53:05 (17 years ago)
Author:
Henrik Bettermann
Message:

allow admin to requery closed objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/uniben/waeup_custom/getPaymentsFolderInfo.py

    r2912 r2939  
    1919
    2020mtool = context.portal_membership
     21member = mtool.getAuthenticatedMember()
    2122if mtool.isAnonymousUser():
    2223    return None
     
    9394    row['trans_ref'] = getattr(so_doc,'order_id','')
    9495    if so_doc.type_description.startswith('School Fee'):
    95         if review_state == 'opened' and info['review_state'] == 'cleared_and_validated' and hasattr(so_doc, 'order_id') and not so_doc.resp_code:
     96        if (review_state == 'opened' and info['review_state'] in ('cleared_and_validated',) and \
     97                                  hasattr(so_doc, 'order_id') and not so_doc.resp_code) or str(member) in ('admin',):
    9698            row['is_requeryable'] = True
    9799            row['callback_url'] = "%s/payments/%s/interswitch_cb" % (student.absolute_url(),
Note: See TracChangeset for help on using the changeset viewer.