Changeset 17125 for main/waeup.uniben/trunk/src
- Timestamp:
- 11 Oct 2022, 15:44:02 (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
r17060 r17125 800 800 801 801 def update(self): 802 ## Uniben: Only 2020 session students are allowed to edit the picture. 803 #if self.context.entry_session != 2020: 804 # emit_lock_message(self) 805 # return 806 #if self.context.entry_mode not in ('ug_ft', 'de_ft'): 807 # emit_lock_message(self) 808 # return 802 if self.context.entry_mode not in ('ug_ft', 'de_ft'): 803 return 809 804 if self.context.is_jupeb: 810 805 emit_lock_message(self) -
main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py
r16906 r17125 57 57 @property 58 58 def target_url(self): 59 # Uniben: Only 2020 session students are allowed to edit the picture.60 if self.context.entry_session != 2020:61 return ''62 59 if self.context.entry_mode not in ('ug_ft', 'de_ft'): 63 60 return '' 61 if self.context.is_jupeb: 62 emit_lock_message(self) 63 return 64 64 PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES 65 65 if self.context.state not in PORTRAIT_CHANGE_STATES:
Note: See TracChangeset for help on using the changeset viewer.