Ignore:
Timestamp:
26 Oct 2022, 12:03:56 (2 years ago)
Author:
Henrik Bettermann
Message:

Allow postgrad students to change their passport picture.

File:
1 edited

Legend:

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

    r17125 r17142  
    800800
    801801    def update(self):
    802         if self.context.entry_mode not in ('ug_ft', 'de_ft'):
     802        # Postgrad students should allowed to change their picture whenever they want.
     803        if self.context.is_postgrad:
    803804            return
    804805        if self.context.is_jupeb:
    805806            emit_lock_message(self)
    806807            return           
    807         PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES
    808         if self.context.state not in PORTRAIT_CHANGE_STATES:
    809             emit_lock_message(self)
    810             return
    811808        super(StudentFilesUploadPage, self).update()
    812809        return
    813 
    814810
    815811
Note: See TracChangeset for help on using the changeset viewer.