Ignore:
Timestamp:
10 Jan 2021, 22:39:51 (4 years ago)
Author:
Henrik Bettermann
Message:

Only 2020 session students are allowed to edit the picture.

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

    r16361 r16362  
    748748
    749749    def update(self):
     750        # Uniben: Only 2020 session students are allowed to edit the picture.
     751        if self.context.entry_session != 2020:
     752            emit_lock_message(self)
     753            return
    750754        # Passport pictures must not be editable if application slip
    751755        # exists.
  • main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py

    r16361 r16362  
    3333from waeup.uniben.students.interfaces import (
    3434    ICustomStudentStudyCourse, ICustomStudentStudyLevel,
    35     ICustomStudent, )
     35    ICustomStudent,)
    3636
    3737from kofacustom.nigeria.interfaces import MessageFactory as _
     
    4747    @property
    4848    def target_url(self):
     49        # Uniben: Only 2020 session students are allowed to edit the picture.
     50        if self.context.entry_session != 2020:
     51            return ''
    4952        # Passport pictures must not be editable if application slip
    5053        # exists.
Note: See TracChangeset for help on using the changeset viewer.