- Timestamp:
- 11 Feb 2020, 09:51:47 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/interswitch/browser.py
r15794 r15999 20 20 import grok 21 21 from kofacustom.nigeria.interswitch.browser import ( 22 module_activated, 22 23 InterswitchPaymentRequestWebservicePageApplicant, 23 24 InterswitchPaymentRequestWebservicePageStudent, … … 64 65 65 66 def update(self): 67 if not module_activated( 68 self.context.student.current_session, self.context): 69 self.flash(_('Forbidden'), type='danger') 70 self.redirect(self.url(self.context, '@@index')) 71 return 66 72 error = self.init_update() 67 73 if error: … … 158 164 159 165 def update(self): 166 if not module_activated( 167 self.context.__parent__.__parent__.year, self.context): 168 self.flash(_('Forbidden'), type='danger') 169 self.redirect(self.url(self.context, '@@index')) 170 return 160 171 error = self.init_update() 161 172 if error:
Note: See TracChangeset for help on using the changeset viewer.