Ignore:
Timestamp:
3 Jun 2024, 13:23:31 (4 months ago)
Author:
Henrik Bettermann
Message:

tighten up some of those allowances

File:
1 edited

Legend:

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

    r17743 r17807  
    817817    #: A tuple containing the names of registration states in which changing of
    818818    #: passport pictures is allowed.
    819     PORTRAIT_CHANGE_STATES = (CLEARANCE, REQUESTED)
     819    PORTRAIT_CHANGE_STATES = (CLEARANCE, ADMITTED)
     820
     821    def allowPortraitChange(self, student):
     822        """Check if student is allowed to change the portrait file.
     823        """
     824        if student.is_jupeb:
     825            return False
     826        if student.state not in self.PORTRAIT_CHANGE_STATES:
     827            return False
     828        return True
    820829
    821830    #: A tuple containing the names of registration states in which changing of
Note: See TracChangeset for help on using the changeset viewer.