Ignore:
Timestamp:
23 Oct 2011, 18:30:07 (13 years ago)
Author:
Henrik Bettermann
Message:

Clearance ACs (and also upcoming school fee ACs) might have been purchased online. Thus we need an AC owner attribute which has to be checked before clearance is being started.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r6920 r6927  
    10661066            comment = u"AC invalidated for %s" % self.context.student_id
    10671067            # Here we know that the ac is in state initialized so we do not
    1068             # expect an exception
    1069             invalidate_accesscode(pin,comment)
     1068            # expect an exception, but the owner might be different
     1069            if not invalidate_accesscode(pin,comment,self.context.student_id):
     1070                self.flash('You are not the owner of this access code.')
     1071                return
    10701072            self.context.clr_code = pin
    10711073        IWorkflowInfo(self.context).fireTransition('start_clearance')
Note: See TracChangeset for help on using the changeset viewer.