Ignore:
Timestamp:
7 Oct 2021, 11:06:40 (3 years ago)
Author:
Henrik Bettermann
Message:

Ease customization of portrait upload conditions.

File:
1 edited

Legend:

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

    r16610 r16671  
    617617    @property
    618618    def target_url(self):
    619         PORTRAIT_CHANGE_STATES = getUtility(
    620             IStudentsUtils).PORTRAIT_CHANGE_STATES
    621         if self.context.state not in PORTRAIT_CHANGE_STATES:
     619        if not getUtility(IStudentsUtils).allowPortraitChange(self.context):
    622620            return ''
    623621        return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.