- Timestamp:
- 16 May 2019, 13:59:24 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py
r15398 r15412 27 27 from zope.interface import implementedBy 28 28 from waeup.kofa.utils.helpers import attrs_to_fields 29 from waeup.kofa.interfaces import RETURNING 29 from waeup.kofa.interfaces import RETURNING, VALIDATED, REGISTERED 30 30 from waeup.kofa.students.browser import TicketError 31 31 from waeup.kofa.students.studylevel import ( … … 424 424 """True if lecturer is allowed to edit the ticket. 425 425 """ 426 return True 426 try: 427 cas = grok.getSite()[ 428 'configuration'].current_academic_session 429 if self.student.state in (VALIDATED, REGISTERED) and \ 430 self.student.current_session == cas: 431 return True 432 except (AttributeError, TypeError): # in unit tests 433 pass 434 return False 427 435 428 436 CustomCourseTicket = attrs_to_fields(CustomCourseTicket)
Note: See TracChangeset for help on using the changeset viewer.