Ignore:
Timestamp:
28 Sep 2012, 19:47:52 (12 years ago)
Author:
Henrik Bettermann
Message:

Protect StudyLevelEditFormPage? and CourseTicketAddFormPage2. Students are not allowed to edit study levels which are not current.

File:
1 edited

Legend:

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

    r9253 r9257  
    5656    def number_of_tickets(self):
    5757        return len(self)
     58
     59    @property
     60    def is_current_level(self):
     61        try:
     62            return self.__parent__.current_level == self.level
     63        except AttributeError:
     64            return False
    5865
    5966    def writeLogMessage(self, view, message):
Note: See TracChangeset for help on using the changeset viewer.