Ignore:
Timestamp:
15 Aug 2020, 09:15:24 (4 years ago)
Author:
Henrik Bettermann
Message:

ASE applicants are not allowed to edit their uploaded passport picture. But they are allowed to submit if no poassport picture has been uploaded.

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

Legend:

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

    r16184 r16199  
    556556    def dataNotComplete(self, data):
    557557        store = getUtility(IExtFileStore)
    558         if self.context.__parent__.with_picture:
     558        if self.context.__parent__.with_picture \
     559            and self.context.__parent__.picture_editable:
    559560            store = getUtility(IExtFileStore)
    560561            if not store.getFileByContext(self.context, attr=u'passport.jpg'):
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/utils.py

    r16175 r16199  
    141141            payment.amount_auth = container_fee
    142142        return
     143
     144    def isPictureEditable(self, container):
     145        """False if applicants are not allowed to edit uploaded pictures.
     146        """
     147        if container.code.startswith('ase'):
     148            return False
     149        return container.with_picture
Note: See TracChangeset for help on using the changeset viewer.