- Timestamp:
- 10 Jan 2016, 12:52:21 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py
r13479 r13578 19 19 from datetime import datetime, timedelta 20 20 from zope.component import getUtility 21 from zope.security import checkPermission 21 22 from waeup.kofa.interfaces import IKofaUtils 22 23 from waeup.kofa.utils.helpers import to_timezone … … 63 64 @property 64 65 def target_url(self): 65 if self.context.p_state in ('paid', 'waived'): 66 if self.context.p_state == 'waived': 67 return '' 68 if self.context.p_state == 'paid' \ 69 and not checkPermission('waeup.manageStudent', self.context): 66 70 return '' 67 71 return self.view.url(self.view.context, self.target) … … 86 90 87 91 def update(self): 88 if self.context.p_state in ('paid', 'waived'): 92 93 if self.context.p_state == 'waived': 94 self.flash(_('This ticket cannot be requeried.'), type='warning') 95 return 96 if self.context.p_state == 'paid' \ 97 and not checkPermission('waeup.manageStudent', self.context): 89 98 self.flash(_('This ticket has already been paid.'), type='warning') 90 99 return
Note: See TracChangeset for help on using the changeset viewer.