Ignore:
Timestamp:
27 Aug 2020, 06:24:17 (4 years ago)
Author:
Henrik Bettermann
Message:

Use email address as identifier for reports. Names can be changed by referees but email addresses must not be changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r16214 r16215  
    17961796            report_exists = False
    17971797            for report in self.context.refereereports:
    1798                 if report.name == referee.name:
     1798                if report.email == referee.email:
    17991799                    report_exists = True
    18001800            if report_exists:
     
    19201920            # (2) Report exists but was created with another mandate.
    19211921            for report in self.context.refereereports:
    1922                 if report.name == mandate.params.get('name'):
     1922                if report.email == mandate.params.get('email'):
    19231923                    self.flash(_('You have already created a '
    19241924                                 'report with another mandate.'),
Note: See TracChangeset for help on using the changeset viewer.