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/applicantsbrowser.py

    r15796 r15974  
    120120
    121121    def update(self):
     122        if not webconnect_module_activated(
     123            self.context.__parent__.__parent__.year, self.context):
     124            self.flash(_('Forbidden'), type='danger')
     125            self.redirect(self.url(self.context, '@@index'))
     126            return
    122127        # Already now it becomes an Etranzact payment. We set the net amount
    123128        # and add the gateway amount.
    124         if not webconnect_module_activated(
    125             self.context.__parent__.__parent__.year, self.context):
    126             return _("Etranzact payments deactivated.")
    127129        if not self.context.r_company:
    128130            self.context.net_amt = self.context.amount_auth
     
    150152        if not webconnect_module_activated(
    151153            self.context.__parent__.__parent__.year, self.context):
     154            self.flash(_('Forbidden'), type='danger')
     155            self.redirect(self.url(self.context, '@@index'))
    152156            return
    153157        applicant = self.context.__parent__
     
    184188        if not webconnect_module_activated(
    185189            self.context.__parent__.__parent__.year, self.context):
     190            self.flash(_('Forbidden'), type='danger')
     191            self.redirect(self.url(self.context, '@@index'))
    186192            return
    187193        if self.context.p_state in ('paid', 'waived', 'scholarship'):
Note: See TracChangeset for help on using the changeset viewer.