Ignore:
Timestamp:
24 Mar 2019, 08:52:47 (6 years ago)
Author:
Henrik Bettermann
Message:

Disable ug_ft returning course registration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py

    r15228 r15365  
    2727from zope.interface import implementedBy
    2828from waeup.kofa.utils.helpers import attrs_to_fields
    29 from waeup.kofa.interfaces import CREATED
     29from waeup.kofa.interfaces import RETURNING
    3030from waeup.kofa.students.browser import TicketError
    3131from waeup.kofa.students.studylevel import (
     
    132132
    133133        ######################################################
    134         # Temporarily disable ug_ft course registration
    135         #if self.student.current_mode == 'ug_ft':
    136         #    return _("Please check back later, course registration is not yet available.")
     134        # Temporarily disable ug_ft returning course registration
     135        if self.student.current_mode == 'ug_ft' \
     136            and self.student.state == RETURNING:
     137            return _("Course registration has been disabled.")
    137138        ######################################################
    138139
Note: See TracChangeset for help on using the changeset viewer.