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

Adjust requirements for passport file upload.

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

Legend:

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

    r17060 r17125  
    800800
    801801    def update(self):
    802         ## Uniben: Only 2020 session students are allowed to edit the picture.
    803         #if self.context.entry_session != 2020:
    804         #    emit_lock_message(self)
    805         #    return
    806         #if self.context.entry_mode not in ('ug_ft', 'de_ft'):
    807         #    emit_lock_message(self)
    808         #    return
     802        if self.context.entry_mode not in ('ug_ft', 'de_ft'):
     803            return
    809804        if self.context.is_jupeb:
    810805            emit_lock_message(self)
  • 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.