Ignore:
Timestamp:
31 Jan 2020, 21:50:08 (5 years ago)
Author:
Henrik Bettermann
Message:

Do not allow to submit forms to other companies than payment.r_company.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact/studentsbrowser.py

    r15796 r15974  
    129129
    130130    def update(self):
     131        if not webconnect_module_activated(
     132            self.context.student.current_session, self.context):
     133            self.flash(_('Forbidden'), type='danger')
     134            self.redirect(self.url(self.context, '@@index'))
     135            return
    131136        # Already now it becomes an Etranzact payment. We set the net amount
    132137        # and add the gateway amount.
    133         if not webconnect_module_activated(
    134             self.context.student.current_session, self.context):
    135             return _("Etranzact payments deactivated.")
    136138        if not self.context.r_company:
    137139            self.context.net_amt = self.context.amount_auth
     
    159161        if not webconnect_module_activated(
    160162            self.context.student.current_session, self.context):
     163            self.flash(_('Forbidden'), type='danger')
     164            self.redirect(self.url(self.context, '@@index'))
    161165            return
    162166        student = self.context.student
     
    193197        if not webconnect_module_activated(
    194198            self.context.student.current_session, self.context):
     199            self.flash(_('Forbidden'), type='danger')
     200            self.redirect(self.url(self.context, '@@index'))
    195201            return
    196202        if self.context.p_state in ('paid', 'waived', 'scholarship'):
Note: See TracChangeset for help on using the changeset viewer.