Ignore:
Timestamp:
6 Mar 2019, 08:01:14 (6 years ago)
Author:
Henrik Bettermann
Message:

Disable repair function if studycourse is locked.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/students
Files:
2 edited

Legend:

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

    r15330 r15340  
    530530
    531531    def update(self, ADD=None, course=None):
     532        if not self.context.__parent__.is_current \
     533            or self.context.student.studycourse_locked:
     534            emit_lock_message(self)
     535            return
    532536        try:
    533537            studylevel_repair_enabled = grok.getSite()['configuration'][
  • main/waeup.aaue/trunk/src/waeup/aaue/students/viewlets.py

    r15330 r15340  
    186186        except KeyError:
    187187            return ''
    188         if not studylevel_repair_enabled:
     188        if not studylevel_repair_enabled \
     189            or self.context.student.studycourse_locked:
    189190            return ''
    190191        return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.