Ignore:
Timestamp:
11 Oct 2022, 15:44:02 (2 years ago)
Author:
Henrik Bettermann
Message:

Adjust requirements for passport file upload.

File:
1 edited

Legend:

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

    r16906 r17125  
    5757    @property
    5858    def target_url(self):
    59         # Uniben: Only 2020 session students are allowed to edit the picture.
    60         if self.context.entry_session != 2020:
    61             return ''
    6259        if self.context.entry_mode not in ('ug_ft', 'de_ft'):
    6360            return ''
     61        if self.context.is_jupeb:
     62            emit_lock_message(self)
     63            return 
    6464        PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES
    6565        if self.context.state not in PORTRAIT_CHANGE_STATES:
Note: See TracChangeset for help on using the changeset viewer.