- Timestamp:
- 26 Oct 2022, 12:03:56 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r17125 r17142 800 800 801 801 def update(self): 802 if self.context.entry_mode not in ('ug_ft', 'de_ft'): 802 # Postgrad students should allowed to change their picture whenever they want. 803 if self.context.is_postgrad: 803 804 return 804 805 if self.context.is_jupeb: 805 806 emit_lock_message(self) 806 807 return 807 PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES808 if self.context.state not in PORTRAIT_CHANGE_STATES:809 emit_lock_message(self)810 return811 808 super(StudentFilesUploadPage, self).update() 812 809 return 813 814 810 815 811
Note: See TracChangeset for help on using the changeset viewer.