Changeset 17142
- Timestamp:
- 26 Oct 2022, 12:03:56 (2 years ago)
- 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
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 -
main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py
r17125 r17142 63 63 return 64 64 PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES 65 if self.context.state not in PORTRAIT_CHANGE_STATES :65 if self.context.state not in PORTRAIT_CHANGE_STATES and not self.context.is_postgrad: 66 66 return '' 67 67 return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.